description = "Spring Framework (Bill of Materials)" apply plugin: 'java-platform' apply from: "$rootDir/gradle/publications.gradle" group = "org.springframework" dependencies { constraints { parent.moduleProjects.sort { "$it.name" }.each { api it } } } publishing { publications { mavenJava(MavenPublication) { artifactId = 'spring-framework-bom' from components.javaPlatform // remove scope information from published BOM pom.withXml { asNode().dependencyManagement.first().dependencies.first().each { it.remove(it.scope.first()) } } } } }