mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Use dependency management in Framework build
Prior to this commit, the Spring Framework build would partially use the
dependency management plugin to import and enforce BOMs.
This commit applies the dependency management plugin to all Java
projects and regroups all version management declaration in the root
`build.gradle` file (versions and exclusions).
Some versions are overridden in specific modules for
backwards-compatibility reasons or extended support.
This commit also adds the Gradle versions plugin that checks for
dependency upgrades in artifact repositories and produces a report; you
can use the following:
./gradlew dependencyUpdates
This commit is contained in:
@@ -57,23 +57,20 @@ task genJaxb {
|
||||
dependencies {
|
||||
compile(project(":spring-beans"))
|
||||
compile(project(":spring-core"))
|
||||
optional("javax.xml.bind:jaxb-api:2.3.1")
|
||||
optional("javax.activation:javax.activation-api:1.2.0")
|
||||
optional("com.thoughtworks.xstream:xstream:1.4.11.1") {
|
||||
exclude group: "xpp3", module: "xpp3_min"
|
||||
exclude group: "xmlpull", module: "xmlpull"
|
||||
}
|
||||
optional("org.jibx:jibx-run:1.3.1")
|
||||
optional("javax.xml.bind:jaxb-api")
|
||||
optional("javax.activation:javax.activation-api")
|
||||
optional("com.thoughtworks.xstream:xstream")
|
||||
optional("org.jibx:jibx-run")
|
||||
testCompile(project(":spring-context"))
|
||||
testCompile("org.ogce:xpp3:1.1.6")
|
||||
testCompile("org.codehaus.jettison:jettison:1.3.8") {
|
||||
testCompile("org.ogce:xpp3")
|
||||
testCompile("org.codehaus.jettison:jettison") {
|
||||
exclude group: "stax", module: "stax-api"
|
||||
}
|
||||
testCompile(files(genJaxb.classesDir).builtBy(genJaxb))
|
||||
testCompile("org.xmlunit:xmlunit-assertj:2.6.2")
|
||||
testCompile("org.xmlunit:xmlunit-matchers:2.6.2")
|
||||
testRuntime("com.sun.xml.bind:jaxb-core:2.3.0.1")
|
||||
testRuntime("com.sun.xml.bind:jaxb-impl:2.3.0.1")
|
||||
testCompile("org.xmlunit:xmlunit-assertj")
|
||||
testCompile("org.xmlunit:xmlunit-matchers")
|
||||
testRuntime("com.sun.xml.bind:jaxb-core")
|
||||
testRuntime("com.sun.xml.bind:jaxb-impl")
|
||||
}
|
||||
|
||||
// JiBX compiler is currently not compatible with JDK 9
|
||||
|
||||
Reference in New Issue
Block a user