1
1
plugins {
2
- id " com.github.spotbugs" version " 1.6.5"
3
- id " org.springframework.boot" version " 2.1.0.RELEASE"
2
+ id ' java'
3
+ id ' jacoco'
4
+ id ' checkstyle'
5
+ id ' eclipse'
6
+ id ' idea'
7
+ id " com.github.spotbugs" version " 1.6.6"
8
+ id " org.springframework.boot" version " 2.1.1.RELEASE"
4
9
id " io.spring.dependency-management" version " 1.0.6.RELEASE"
5
10
id " com.palantir.docker" version " 0.20.1"
6
- id " org.owasp.dependencycheck" version " 3.3.4"
7
11
id " org.sonarqube" version " 2.6.2"
8
12
id " com.gorylenko.gradle-git-properties" version " 1.5.2"
9
13
}
10
14
15
+
11
16
group = ' com.bnc'
12
17
version = ' 0.0.1-SNAPSHOT'
13
18
14
- apply plugin : ' java'
15
- apply plugin : ' jacoco'
16
- apply plugin : ' checkstyle'
17
- apply plugin : ' com.github.spotbugs'
18
- apply plugin : ' eclipse'
19
- apply plugin : ' idea'
20
-
21
19
sourceCompatibility = 1.8
22
20
targetCompatibility = 1.8
23
21
@@ -29,15 +27,15 @@ repositories {
29
27
}
30
28
31
29
spotbugs {
32
- toolVersion = ' 3.1.8 '
30
+ toolVersion = ' 3.1.10 '
33
31
}
34
32
35
33
jacoco {
36
34
toolVersion = " 0.8.2"
37
35
}
38
36
39
37
checkstyle {
40
- toolVersion ' 8.14 '
38
+ toolVersion ' 8.15 '
41
39
}
42
40
43
41
springBoot {
@@ -117,22 +115,25 @@ docker {
117
115
buildArgs([' JAR_FILE' : " ${ bootJar.archiveName} " ])
118
116
}
119
117
118
+ dependencyManagement {
119
+ imports {
120
+ mavenBom " org.springframework.cloud:spring-cloud-sleuth:2.1.0.M2"
121
+ }
122
+ }
123
+
120
124
dependencies {
121
- def springBootVersion = ' 2.1.0.RELEASE'
122
- implementation group : ' org.springframework.boot' , name : ' spring-boot-starter-web' , version : springBootVersion
123
- implementation group : ' org.springframework.boot' , name : ' spring-boot-starter-actuator' , version : springBootVersion
124
- // Update this to release version and remove milestone repo
125
- implementation group : ' org.springframework.cloud' , name : ' spring-cloud-starter-sleuth' , version : ' 2.1.0.M1'
126
- implementation group : ' com.github.spotbugs' , name : ' spotbugs-annotations' , version : ' 3.1.8'
127
- implementation group : ' io.micrometer' , name : ' micrometer-registry-new-relic' , version : ' 1.1.0'
125
+ implementation group : ' org.springframework.boot' , name : ' spring-boot-starter-web'
126
+ implementation group : ' org.springframework.boot' , name : ' spring-boot-starter-actuator'
127
+ implementation group : ' org.springframework.cloud' , name : ' spring-cloud-starter-sleuth'
128
+ implementation group : ' com.github.spotbugs' , name : ' spotbugs-annotations' , version : ' 3.1.10'
129
+ implementation group : ' io.micrometer' , name : ' micrometer-registry-new-relic' , version : ' 1.1.1'
128
130
runtime group : ' org.postgresql' , name : ' postgresql' , version : ' 42.2.5'
129
131
130
- testImplementation group : ' org.springframework.boot' , name : ' spring-boot-starter-test' , version : springBootVersion
131
- testImplementation group : ' org.junit.jupiter' , name : ' junit-jupiter-api' , version : ' 5.3.1 '
132
+ testImplementation group : ' org.springframework.boot' , name : ' spring-boot-starter-test'
133
+ testImplementation group : ' org.junit.jupiter' , name : ' junit-jupiter-api' , version : ' 5.3.2 '
132
134
testImplementation group : ' org.assertj' , name : ' assertj-core' , version : ' 3.11.1'
133
- testImplementation group : ' org.mockito' , name : ' mockito-core' , version : ' 2.23.0'
134
- // Remove once Mockito 3.x gets released with Junit 5 support
135
- testImplementation group : ' org.mockito' , name : ' mockito-junit-jupiter' , version : ' 2.23.0'
136
- testRuntime group : ' org.junit.jupiter' , name : ' junit-jupiter-engine' , version : ' 5.3.1'
135
+ testImplementation group : ' org.mockito' , name : ' mockito-core' , version : ' 2.23.4'
136
+ testImplementation group : ' org.mockito' , name : ' mockito-junit-jupiter' , version : ' 2.23.4'
137
+ testRuntime group : ' org.junit.jupiter' , name : ' junit-jupiter-engine' , version : ' 5.3.2'
137
138
testRuntime group : ' com.h2database' , name : ' h2' , version : ' 1.4.197'
138
139
}
0 commit comments