-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild.gradle
93 lines (81 loc) · 2.35 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
plugins {
id 'java-library'
id 'jacoco'
id 'maven-publish'
id 'io.github.gradle-nexus.publish-plugin' version '1.2.0'
id 'signing'
}
apply from: 'gradle/publish.gradle'
group = 'com.github.kuliginstepan'
version = '4.0.0'
sourceCompatibility = JavaVersion.VERSION_17
def nexusUsername = System.getenv("NEXUS_USERNAME") ?: (project.findProperty("NEXUS_USERNAME") ?: "")
def nexusPassword = System.getenv("NEXUS_PASSWORD") ?: (project.findProperty("NEXUS_PASSWORD") ?: "")
nexusPublishing {
repositories {
sonatype {
username = nexusUsername
password = nexusPassword
}
}
}
repositories {
mavenCentral()
}
java {
withSourcesJar()
withJavadocJar()
}
configurations {
internal {
visible = false
canBeConsumed = false
canBeResolved = false
}
annotationProcessor {
extendsFrom(internal)
}
testAnnotationProcessor {
extendsFrom(internal)
}
compileClasspath {
extendsFrom(internal)
}
runtimeClasspath {
extendsFrom(internal)
}
testCompileClasspath {
extendsFrom(internal)
}
testRuntimeClasspath {
extendsFrom(internal)
}
}
dependencies {
internal platform('org.springframework.boot:spring-boot-dependencies:3.0.4')
implementation 'org.springframework.boot:spring-boot'
implementation 'org.springframework.boot:spring-boot-autoconfigure'
implementation 'org.springframework:spring-webflux'
implementation 'io.projectreactor.netty:reactor-netty'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
implementation 'org.slf4j:slf4j-api'
implementation 'jakarta.validation:jakarta.validation-api'
implementation 'org.hibernate.validator:hibernate-validator'
compileOnly 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
test {
useJUnitPlatform()
}
jacocoTestReport {
reports {
xml.required = true
csv.required = false
}
}
test.finalizedBy jacocoTestReport