Skip to content

Commit c909043

Browse files
authored
Merge pull request #35 from bnc-projects/update-dependencies
Update dependencies and move to spring boot 2.1
2 parents 531427b + dc0800d commit c909043

File tree

3 files changed

+20
-47
lines changed

3 files changed

+20
-47
lines changed

build.gradle

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
plugins {
2-
id "com.github.spotbugs" version "1.6.4"
3-
id "org.springframework.boot" version "2.0.5.RELEASE"
2+
id "com.github.spotbugs" version "1.6.5"
3+
id "org.springframework.boot" version "2.1.0.RELEASE"
44
id "io.spring.dependency-management" version "1.0.6.RELEASE"
55
id "com.palantir.docker" version "0.20.1"
6-
id "org.owasp.dependencycheck" version "3.3.2"
6+
id "org.owasp.dependencycheck" version "3.3.4"
77
id "org.sonarqube" version "2.6.2"
88
id "com.gorylenko.gradle-git-properties" version "1.5.2"
99
}
@@ -25,19 +25,19 @@ compileJava.options.encoding = "UTF-8"
2525

2626
repositories {
2727
mavenCentral()
28+
maven { url "https://repo.spring.io/milestone" }
2829
}
2930

3031
spotbugs {
31-
toolVersion = '3.1.7'
32+
toolVersion = '3.1.8'
3233
}
3334

3435
jacoco {
3536
toolVersion = "0.8.2"
3637
}
3738

3839
checkstyle {
39-
configDir rootProject.file('config/checkstyle')
40-
toolVersion '8.1'
40+
toolVersion '8.14'
4141
}
4242

4343
springBoot {
@@ -118,22 +118,21 @@ docker {
118118
}
119119

120120
dependencies {
121-
def springBootVersion = '2.0.5.RELEASE'
121+
def springBootVersion = '2.1.0.RELEASE'
122122
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: springBootVersion
123123
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: springBootVersion
124-
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-sleuth', version: '2.0.1.RELEASE'
125-
implementation group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: '3.1.7'
126-
implementation group: 'io.micrometer', name: 'micrometer-registry-new-relic', version: '1.0.6'
127-
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'
128128
runtime group: 'org.postgresql', name: 'postgresql', version: '42.2.5'
129129

130-
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.3.1'
131-
testRuntime group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.3.1'
132-
testRuntime group: 'com.h2database', name: 'h2', version: '1.4.197'
133-
testImplementation group: 'org.mockito', name: 'mockito-core', version: '2.22.0'
134-
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.11.1'
135130
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: springBootVersion
136-
131+
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.3.1'
132+
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.11.1'
133+
testImplementation group: 'org.mockito', name: 'mockito-core', version: '2.23.0'
137134
// Remove once Mockito 3.x gets released with Junit 5 support
138-
testImplementation group: 'org.mockito', name: 'mockito-junit-jupiter', version: '2.22.0'
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'
137+
testRuntime group: 'com.h2database', name: 'h2', version: '1.4.197'
139138
}

src/main/java/com/bnc/sbjb/configuration/MetricsConfiguration.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/main/resources/application.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ management:
2626
export:
2727
newrelic:
2828
enabled: false
29+
tags:
30+
application: ${spring.application.name}
31+
container: ${HOSTNAME:}${COMPUTERNAME:}
2932
---
3033
spring:
3134
profiles: production

0 commit comments

Comments
 (0)