Skip to content

Commit 28850a5

Browse files
committed
centralize spring boot version
1 parent c13d9b3 commit 28850a5

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

autoconfigure/build.gradle

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,13 @@ archivesBaseName = "okhttp-spring-boot-autoconfigure"
1010

1111
javadoc.options.linkSource true
1212

13-
dependencyManagement {
14-
imports {
15-
mavenBom 'org.springframework.boot:spring-boot-dependencies:2.0.0.M1'
16-
}
17-
}
18-
1913
checkstyle.toolVersion = "7.8.1"
2014

2115
compileJava.dependsOn(processResources)
2216

2317
dependencies {
2418
compileOnly 'org.projectlombok:lombok'
19+
compileOnly 'org.springframework.boot:spring-boot-configuration-processor'
2520

2621
compile 'org.springframework.boot:spring-boot-autoconfigure'
2722

@@ -33,11 +28,6 @@ dependencies {
3328
compileOnly 'com.squareup.okhttp:okhttp:2.+'
3429
compileOnly 'com.squareup.okhttp:logging-interceptor:2.+'
3530

36-
compileOnly 'org.springframework.boot:spring-boot-configuration-processor'
37-
3831
testCompile 'org.springframework.boot:spring-boot-starter-test'
39-
//https://github.com/spring-projects/spring-boot/issues/8492
40-
testCompile 'org.springframework.boot:spring-boot-starter-logging'
41-
testCompile 'com.squareup.okhttp3:okhttp'
42-
32+
testCompile 'com.squareup.okhttp3:okhttp:3.8.0'
4333
}

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,12 @@ allprojects {
2525
sourceCompatibility = 1.8
2626
targetCompatibility = 1.8
2727
}
28+
29+
pluginManager.withPlugin('io.spring.dependency-management') {
30+
dependencyManagement {
31+
imports {
32+
mavenBom 'org.springframework.boot:spring-boot-dependencies:2.0.0.M1'
33+
}
34+
}
35+
}
2836
}

0 commit comments

Comments
 (0)