Apply dependency management to selected modules
This commit applies the Dependency Management Plugin to modules that require it; right now Spring Framework is importing BOMs for Netty and Reactor dependencies only. Instead of applying those BOMs to all modules, they're applied only where they're needed. Issue: SPR-15885
This commit is contained in:
19
build.gradle
19
build.gradle
@@ -90,13 +90,6 @@ configure(allprojects) { project ->
|
||||
configurations.all {
|
||||
// Check for updates every build
|
||||
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
|
||||
|
||||
// Consistent netty version (e.g. clashes between netty-all vs netty-common)
|
||||
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
|
||||
if (details.requested.group == 'io.netty') {
|
||||
details.useVersion nettyVersion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
compileJava.options*.compilerArgs = [
|
||||
@@ -185,18 +178,6 @@ configure(allprojects) { project ->
|
||||
|
||||
configure(subprojects - project(":spring-build-src")) { subproject ->
|
||||
apply from: "${gradleScriptDir}/publish-maven.gradle"
|
||||
apply plugin: "io.spring.dependency-management"
|
||||
|
||||
dependencyManagement {
|
||||
imports {
|
||||
mavenBom "io.projectreactor:reactor-bom:${reactorVersion}"
|
||||
mavenBom "io.netty:netty-bom:${nettyVersion}"
|
||||
}
|
||||
resolutionStrategy {
|
||||
cacheChangingModulesFor 0, 'seconds'
|
||||
}
|
||||
applyMavenExclusions = false
|
||||
}
|
||||
|
||||
configurations {
|
||||
jacoco
|
||||
|
||||
Reference in New Issue
Block a user