@@ -11,6 +11,7 @@ buildscript {
1111 classpath " com.diffplug.spotless:spotless-plugin-gradle:3.13.0"
1212 classpath " de.thetaphi:forbiddenapis:2.2"
1313 classpath " de.aaschmid:gradle-cpd-plugin:1.0"
14+ classpath " io.spring.gradle:dependency-management-plugin:1.0.4.RELEASE"
1415 }
1516}
1617
@@ -39,9 +40,16 @@ description "Support library for Spring framework, AWS Java SDK and the others."
3940
4041subprojects {
4142 apply plugin : " java"
43+ apply plugin : " io.spring.dependency-management"
4244 apply plugin : " maven"
4345 apply plugin : " maven-publish"
4446 apply plugin : " com.jfrog.bintray"
47+
48+ dependencyManagement {
49+ imports {
50+ mavenBom " org.springframework.boot:spring-boot-dependencies:$springBootVersion "
51+ }
52+ }
4553
4654 sourceCompatibility = targetCompatibility = 1.8
4755
@@ -53,7 +61,7 @@ subprojects {
5361 apply plugin : " jacoco"
5462 apply plugin : " de.thetaphi.forbiddenapis"
5563 apply plugin : " com.diffplug.gradle.spotless"
56-
64+
5765 // code quality configuration
5866 apply from : " ${ rootProject.projectDir} /gradle/quality/checkstyle.gradle"
5967 apply from : " ${ rootProject.projectDir} /gradle/quality/findbugs.gradle"
@@ -86,13 +94,14 @@ subprojects {
8694 }
8795
8896 dependencies {
89- compile " org.slf4j:slf4j-api: $s lf4jVersion "
97+ compile " org.slf4j:slf4j-api"
9098 compileOnly " org.projectlombok:lombok:$lombokVersion "
91- testCompile " org.slf4j:jul-to-slf4j:$slf4jVersion "
92- testCompile " ch.qos.logback:logback-classic:$logbackVersion "
99+ testCompile " org.slf4j:jul-to-slf4j"
100+ testCompile " org.slf4j:jcl-over-slf4j"
101+ testCompile " ch.qos.logback:logback-classic"
93102 testCompile " junit:junit:$junitVersion "
94103 testCompile " org.hamcrest:hamcrest-library:$hamcrestVersion "
95- testCompile " org.mockito:mockito-core: $m ockitoCoreVersion "
104+ testCompile " org.mockito:mockito-core"
96105 }
97106
98107
0 commit comments