Browse Source

Fix Spring Framework BOM

This commit reinstates the Spring Framework BOM, which was previously
empty because of a previous change in 41cbc4670f.
This change also removes the JSR305 dependency from the BOM, which does
not belong here since it is not an artifact produced by Spring.

Issue: SPR-15885
pull/1503/head
Brian Clozel 7 years ago
parent
commit
cea9d1db8e
  1. 7
      build.gradle
  2. 17
      spring-framework-bom/spring-framework-bom.gradle

7
build.gradle

@ -135,7 +135,6 @@ configure(allprojects) { project -> @@ -135,7 +135,6 @@ configure(allprojects) { project ->
}
dependencies {
provided("com.google.code.findbugs:jsr305:3.0.2")
testCompile("junit:junit:4.12") {
exclude group:'org.hamcrest', module:'hamcrest-core'
}
@ -223,6 +222,12 @@ configure(subprojects - project(":spring-build-src")) { subproject -> @@ -223,6 +222,12 @@ configure(subprojects - project(":spring-build-src")) { subproject ->
}
}
configure(moduleProjects) {
dependencies {
provided("com.google.code.findbugs:jsr305:3.0.2")
}
}
configure(rootProject) {
description = "Spring Framework"

17
spring-framework-bom/spring-framework-bom.gradle

@ -16,6 +16,23 @@ install { @@ -16,6 +16,23 @@ install {
repositories.mavenInstaller {
pom.whenConfigured {
packaging = "pom"
withXml {
asNode().children().last() + {
delegate.dependencyManagement {
delegate.dependencies {
parent.subprojects.sort { "$it.name" }.each { p ->
if (p != project) {
delegate.dependency {
delegate.groupId(p.group)
delegate.artifactId(p.name)
delegate.version(p.version)
}
}
}
}
}
}
}
}
}
}
Loading…
Cancel
Save