INT-3397 Add spring-integration-bom

JIRA: https://jira.spring.io/browse/INT-3397

Similar to Spring Framework's; see
https://spring.io/blog/2013/12/03/spring-framework-4-0-rc2-available
This commit is contained in:
Gary Russell
2014-05-01 10:11:42 -04:00
parent 674f67348c
commit f34eb52644
3 changed files with 38 additions and 0 deletions

View File

@@ -659,6 +659,41 @@ project('spring-integration-xmpp') {
[compileJava,compileTestJava]*.options*.compilerArgs = ["${xLintArg},-path"]
}
project("spring-integration-bom") {
description = "Spring Integration (Bill of Materials)"
configurations.archives.artifacts.clear()
artifacts {
// work around GRADLE-2406 by attaching text artifact
archives(file("spring-integration-bom.txt"))
}
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)
}
}
}
}
}
}
}
}
}
}
}
apply plugin: 'docbook-reference'
reference {

View File

@@ -29,3 +29,4 @@ include 'spring-integration-twitter'
include 'spring-integration-ws'
include 'spring-integration-xml'
include 'spring-integration-xmpp'
include 'spring-integration-bom'

View File

@@ -0,0 +1,2 @@
This meta-project is used to generate a bill-of-materials POM that contains the other
projects in a dependencyManagement section.