After the Groovy 2.5 upgrade, the Spring Framework build on JDK9 hit GROOVY-8631. Adding the relevant `jax-api` dependency to the module didn't fix this issue. The Groovy release notes mention the use of the `--add-modules` JVM flag, but this is not an option for this build which should run on JDK8 -> JDK11. This commit changes the dependency from `groovy-all` to more focused dependencies on Groovy in the `spring-beans` and `spring-context` modules. This change seems to avoid the automatic loading of Groovy enhancements to JAXB (shipped with `groovy-xml`). See: * http://groovy-lang.org/releasenotes/groovy-2.5.html#Groovy2.5releasenotes-Knownissues * https://issues.apache.org/jira/browse/GROOVY-8631 Issue: SPR-15407
35 lines
1.5 KiB
Groovy
35 lines
1.5 KiB
Groovy
description = "Spring Context"
|
|
|
|
apply plugin: "groovy"
|
|
|
|
dependencies {
|
|
compile(project(":spring-aop"))
|
|
compile(project(":spring-beans"))
|
|
compile(project(':spring-core'))
|
|
compile(project(":spring-expression"))
|
|
optional(project(":spring-instrument"))
|
|
optional("javax.annotation:javax.annotation-api:1.3.2")
|
|
optional("javax.ejb:javax.ejb-api:3.2")
|
|
optional("javax.enterprise.concurrent:javax.enterprise.concurrent-api:1.0")
|
|
optional("javax.inject:javax.inject:1")
|
|
optional("javax.interceptor:javax.interceptor-api:1.2.1")
|
|
optional("javax.money:money-api:1.0.3")
|
|
optional("javax.validation:validation-api:1.1.0.Final")
|
|
optional("javax.xml.ws:jaxws-api:2.3.0")
|
|
optional("org.aspectj:aspectjweaver:${aspectjVersion}")
|
|
optional("org.codehaus.groovy:groovy:${groovyVersion}")
|
|
optional("org.beanshell:bsh:2.0b5")
|
|
optional("joda-time:joda-time:2.10")
|
|
optional("org.hibernate:hibernate-validator:5.4.2.Final")
|
|
optional("org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}")
|
|
optional("org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}")
|
|
testCompile("org.codehaus.groovy:groovy-xml:${groovyVersion}")
|
|
testCompile("org.codehaus.groovy:groovy-jsr223:${groovyVersion}")
|
|
testCompile("org.codehaus.groovy:groovy-test:${groovyVersion}")
|
|
testCompile("org.apache.commons:commons-pool2:2.5.0")
|
|
testCompile("javax.inject:javax.inject-tck:1")
|
|
testRuntime("javax.xml.bind:jaxb-api:2.3.0")
|
|
testRuntime("org.glassfish:javax.el:3.0.1-b08")
|
|
testRuntime("org.javamoney:moneta:1.2.1")
|
|
}
|