Skip to content

Commit 9265587

Browse files
committed
Update dependencies and utilise spring plugins for version control
1 parent 01880cd commit 9265587

File tree

1 file changed

+26
-25
lines changed

1 file changed

+26
-25
lines changed

build.gradle

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
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"
49
id "io.spring.dependency-management" version "1.0.6.RELEASE"
510
id "com.palantir.docker" version "0.20.1"
6-
id "org.owasp.dependencycheck" version "3.3.4"
711
id "org.sonarqube" version "2.6.2"
812
id "com.gorylenko.gradle-git-properties" version "1.5.2"
913
}
1014

15+
1116
group = 'com.bnc'
1217
version = '0.0.1-SNAPSHOT'
1318

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-
2119
sourceCompatibility = 1.8
2220
targetCompatibility = 1.8
2321

@@ -29,15 +27,15 @@ repositories {
2927
}
3028

3129
spotbugs {
32-
toolVersion = '3.1.8'
30+
toolVersion = '3.1.10'
3331
}
3432

3533
jacoco {
3634
toolVersion = "0.8.2"
3735
}
3836

3937
checkstyle {
40-
toolVersion '8.14'
38+
toolVersion '8.15'
4139
}
4240

4341
springBoot {
@@ -117,22 +115,25 @@ docker {
117115
buildArgs(['JAR_FILE': "${bootJar.archiveName}"])
118116
}
119117

118+
dependencyManagement {
119+
imports {
120+
mavenBom "org.springframework.cloud:spring-cloud-sleuth:2.1.0.M2"
121+
}
122+
}
123+
120124
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'
128130
runtime group: 'org.postgresql', name: 'postgresql', version: '42.2.5'
129131

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'
132134
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'
137138
testRuntime group: 'com.h2database', name: 'h2', version: '1.4.197'
138139
}

0 commit comments

Comments
 (0)