framework-bom.gradle 588 B

1234567891011121314151617181920212223242526272829
  1. description = "Spring Framework (Bill of Materials)"
  2. apply plugin: 'java-platform'
  3. apply from: "$rootDir/gradle/publications.gradle"
  4. group = "org.springframework"
  5. dependencies {
  6. constraints {
  7. parent.moduleProjects.sort { "$it.name" }.each {
  8. api it
  9. }
  10. }
  11. }
  12. publishing {
  13. publications {
  14. mavenJava(MavenPublication) {
  15. artifactId = 'spring-framework-bom'
  16. from components.javaPlatform
  17. // remove scope information from published BOM
  18. pom.withXml {
  19. asNode().dependencyManagement.first().dependencies.first().each {
  20. it.remove(it.scope.first())
  21. }
  22. }
  23. }
  24. }
  25. }