Skip to content

Commit b6a5996

Browse files
author
wreulicke
committed
add bom
1 parent 350544e commit b6a5996

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

build.gradle

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

4041
subprojects {
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,13 @@ subprojects {
8694
}
8795

8896
dependencies {
89-
compile "org.slf4j:slf4j-api:$slf4jVersion"
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 "ch.qos.logback:logback-classic"
93101
testCompile "junit:junit:$junitVersion"
94102
testCompile "org.hamcrest:hamcrest-library:$hamcrestVersion"
95-
testCompile "org.mockito:mockito-core:$mockitoCoreVersion"
103+
testCompile "org.mockito:mockito-core"
96104
}
97105

98106

0 commit comments

Comments
 (0)