Skip to content

Commit e2882fe

Browse files
committed
Build against EE 8 API level wherever possible
Upgrade to JAXB 2.3, JAX-WS 2.3, Annotations 1.3.1, Interceptor 1.2.1. Also includes Log4J 2.9.1 and Asciidoctor 1.5.6.
1 parent 1e87b6d commit e2882fe

File tree

14 files changed

+69
-76
lines changed

14 files changed

+69
-76
lines changed

build.gradle

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ buildscript {
55
dependencies {
66
classpath("io.spring.gradle:propdeps-plugin:0.0.8")
77
classpath("io.spring.gradle:docbook-reference-plugin:0.3.1")
8-
classpath("org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.14")
9-
classpath("org.asciidoctor:asciidoctorj-epub3:1.5.0-alpha.6")
8+
classpath("org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16")
9+
classpath("org.asciidoctor:asciidoctorj-epub3:1.5.0-alpha.7")
1010
}
1111
}
1212

@@ -41,25 +41,18 @@ configure(allprojects) { project ->
4141
group = "org.springframework"
4242
version = qualifyVersionIfNecessary(version)
4343

44-
ext.activationVersion = "1.1.1"
4544
ext.aspectjVersion = "1.9.0.BETA-6"
4645
ext.freemarkerVersion = "2.3.26-incubating"
4746
ext.groovyVersion = "2.4.12"
4847
ext.hsqldbVersion = "2.4.0"
49-
ext.httpclientVersion = "4.5.3"
5048
ext.jackson2Version = "2.9.1"
51-
ext.javamailVersion = "1.6.0"
52-
ext.jaxbVersion = "2.2.11"
53-
ext.jaxwsVersion = "2.2.11"
5449
ext.jettyVersion = "9.4.7.v20170914"
55-
ext.jsr305Version = "3.0.2"
5650
ext.junitJupiterVersion = '5.0.0'
5751
ext.junitPlatformVersion = '1.0.0'
5852
ext.junitVintageVersion = "4.12.0"
5953
ext.kotlinVersion = '1.1.4-3'
60-
ext.log4jVersion = '2.9.0'
54+
ext.log4jVersion = '2.9.1'
6155
ext.nettyVersion = "4.1.15.Final"
62-
ext.okhttp3Version = "3.9.0"
6356
ext.reactorVersion = "Bismuth-RC1"
6457
ext.rxjavaVersion = '1.3.2'
6558
ext.rxjavaAdapterVersion = '1.2.1'
@@ -151,9 +144,9 @@ configure(allprojects) { project ->
151144
testCompile("org.hamcrest:hamcrest-all:1.3")
152145
testCompile("org.xmlunit:xmlunit-matchers:2.3.0")
153146
testRuntime("org.apache.logging.log4j:log4j-core:${log4jVersion}")
154-
155-
compileOnly("com.google.code.findbugs:jsr305:${jsr305Version}")
156-
testCompileOnly("com.google.code.findbugs:jsr305:${jsr305Version}")
147+
// JSR-305 only used for non-required meta-annotations
148+
compileOnly("com.google.code.findbugs:jsr305:3.0.2")
149+
testCompileOnly("com.google.code.findbugs:jsr305:3.0.2")
157150
}
158151

159152
ext.javadocLinks = [

spring-aspects/spring-aspects.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ dependencies {
100100
optional("javax.transaction:javax.transaction-api:1.2") // for @javax.transaction.Transactional support
101101
testCompile(project(":spring-core")) // for CodeStyleAspect
102102
testCompile(project(":spring-test"))
103-
testCompile("javax.mail:javax.mail-api:${javamailVersion}")
103+
testCompile("javax.mail:javax.mail-api:1.6.0")
104104
}
105105

106106
eclipse.project {

spring-context-indexer/spring-context-indexer.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ description = "Spring Context Indexer"
33
dependencies {
44
testCompile(project(":spring-context"))
55
testCompile("javax.inject:javax.inject:1")
6-
testCompile("javax.annotation:javax.annotation-api:1.3")
6+
testCompile("javax.annotation:javax.annotation-api:1.3.1")
77
testCompile("org.eclipse.persistence:javax.persistence:2.1.1")
88
}

spring-context-support/spring-context-support.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ dependencies {
66
compile(project(":spring-core"))
77
optional(project(":spring-jdbc")) // for Quartz support
88
optional(project(":spring-tx")) // for Quartz support
9-
optional("javax.activation:activation:${activationVersion}")
10-
optional("javax.mail:javax.mail-api:${javamailVersion}")
9+
optional("javax.activation:activation:1.1.1")
10+
optional("javax.mail:javax.mail-api:1.6.0")
1111
optional("javax.cache:cache-api:1.0.0")
1212
optional("com.github.ben-manes.caffeine:caffeine:2.5.6")
1313
optional("net.sf.ehcache:ehcache:2.10.4")
@@ -21,6 +21,6 @@ dependencies {
2121
testRuntime("org.ehcache:jcache:1.0.1")
2222
testRuntime("org.ehcache:ehcache:3.4.0")
2323
testRuntime("org.glassfish:javax.el:3.0.1-b08")
24-
testRuntime("javax.annotation:javax.annotation-api:1.3")
25-
testRuntime("com.sun.mail:javax.mail:${javamailVersion}")
24+
testRuntime("javax.annotation:javax.annotation-api:1.3.1")
25+
testRuntime("com.sun.mail:javax.mail:1.6.0")
2626
}

spring-context/spring-context.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ dependencies {
88
compile(project(":spring-expression"))
99
compile(project(':spring-core'))
1010
optional(project(":spring-instrument"))
11-
optional("javax.inject:javax.inject:1")
12-
optional("javax.annotation:javax.annotation-api:1.3")
13-
optional("javax.xml.ws:jaxws-api:${jaxwsVersion}")
11+
optional("javax.annotation:javax.annotation-api:1.3.1")
1412
optional("javax.ejb:javax.ejb-api:3.2")
15-
optional("javax.interceptor:javax.interceptor-api:1.2")
1613
optional("javax.enterprise.concurrent:javax.enterprise.concurrent-api:1.0")
14+
optional("javax.inject:javax.inject:1")
15+
optional("javax.interceptor:javax.interceptor-api:1.2.1")
1716
optional("javax.money:money-api:1.0.1")
1817
optional("javax.validation:validation-api:1.1.0.Final")
18+
optional("javax.xml.ws:jaxws-api:2.3.0")
1919
optional("org.hibernate:hibernate-validator:5.4.1.Final")
2020
optional("joda-time:joda-time:2.9.9")
2121
optional("org.aspectj:aspectjweaver:${aspectjVersion}")
@@ -26,7 +26,7 @@ dependencies {
2626
testCompile("org.apache.commons:commons-pool2:2.4.2")
2727
testCompile("org.slf4j:slf4j-api:${slf4jVersion}")
2828
testCompile("javax.inject:javax.inject-tck:1")
29-
testRuntime("javax.xml.bind:jaxb-api:${jaxbVersion}")
29+
testRuntime("javax.xml.bind:jaxb-api:2.3.0")
3030
testRuntime("org.glassfish:javax.el:3.0.1-b08")
3131
testRuntime("org.javamoney:moneta:1.1")
3232
}

spring-core/spring-core.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ dependencies {
8686
optional("io.reactivex.rxjava2:rxjava:${rxjava2Version}")
8787
optional("io.netty:netty-buffer")
8888
testCompile("io.projectreactor:reactor-test")
89-
testCompile("javax.xml.bind:jaxb-api:${jaxbVersion}")
89+
testCompile("javax.xml.bind:jaxb-api:2.3.0")
9090
testCompile("org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}")
9191
testCompile("com.fasterxml.woodstox:woodstox-core:5.0.3") {
9292
exclude group: "stax", module: "stax-api"

spring-messaging/spring-messaging.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies {
2424
}
2525
optional("org.eclipse.jetty.websocket:websocket-client:${jettyVersion}")
2626
optional("com.fasterxml.jackson.core:jackson-databind:${jackson2Version}")
27-
optional("javax.xml.bind:jaxb-api:${jaxbVersion}")
27+
optional("javax.xml.bind:jaxb-api:2.3.0")
2828
testCompile("javax.inject:javax.inject-tck:1")
2929
testCompile("javax.servlet:javax.servlet-api:3.1.0")
3030
testCompile("javax.validation:validation-api:1.1.0.Final")
@@ -41,7 +41,7 @@ dependencies {
4141
testCompile("org.apache.tomcat.embed:tomcat-embed-websocket:${tomcatVersion}")
4242
testCompile("org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}")
4343
testCompile("org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}")
44-
testRuntime("com.sun.xml.bind:jaxb-core:${jaxbVersion}")
45-
testRuntime("com.sun.xml.bind:jaxb-impl:${jaxbVersion}")
46-
testRuntime("javax.activation:activation:${activationVersion}")
44+
testRuntime("com.sun.xml.bind:jaxb-core:2.3.0")
45+
testRuntime("com.sun.xml.bind:jaxb-impl:2.3.0")
46+
testRuntime("javax.activation:activation:1.1.1")
4747
}

spring-orm/spring-orm.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ dependencies {
1313
optional("javax.servlet:javax.servlet-api:3.1.0")
1414
testCompile("org.aspectj:aspectjweaver:${aspectjVersion}")
1515
testCompile("org.hsqldb:hsqldb:${hsqldbVersion}")
16-
testRuntime("javax.xml.bind:jaxb-api:${jaxbVersion}")
16+
testRuntime("javax.xml.bind:jaxb-api:2.3.0")
1717
}

spring-oxm/spring-oxm.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ dependencies {
1010
castor "org.codehaus.castor:castor-anttasks:1.4.1"
1111
jibx "org.jibx:jibx-bind:1.3.1"
1212
jibx "org.apache.bcel:bcel:6.0"
13-
xjc 'com.sun.xml.bind:jaxb-xjc:2.2.11'
14-
xjc 'javax.xml.bind:jaxb-api:2.2.11'
15-
xjc 'com.sun.xml.bind:jaxb-core:2.2.11'
16-
xjc 'com.sun.xml.bind:jaxb-impl:2.2.11'
1713
xjc 'javax.activation:activation:1.1.1'
14+
xjc 'javax.xml.bind:jaxb-api:2.3.0'
15+
xjc 'com.sun.xml.bind:jaxb-core:2.3.0'
16+
xjc 'com.sun.xml.bind:jaxb-impl:2.3.0'
17+
xjc 'com.sun.xml.bind:jaxb-xjc:2.3.0'
1818
}
1919

2020
ext.genSourcesDir = "${buildDir}/generated-sources"
@@ -98,8 +98,8 @@ task genJaxb {
9898
dependencies {
9999
compile(project(":spring-beans"))
100100
compile(project(":spring-core"))
101-
optional("javax.xml.bind:jaxb-api:${jaxbVersion}")
102-
optional("javax.activation:activation:${activationVersion}")
101+
optional("javax.xml.bind:jaxb-api:2.3.0")
102+
optional("javax.activation:activation:1.1.1")
103103
optional("org.codehaus.castor:castor-xml:1.4.1") {
104104
exclude group: 'stax', module: 'stax-api'
105105
exclude group: "org.springframework", module: "spring-context"
@@ -118,8 +118,8 @@ dependencies {
118118
testCompile(files(genCastor.classesDir).builtBy(genCastor))
119119
testCompile(files(genJaxb.classesDir).builtBy(genJaxb))
120120
testRuntime("xerces:xercesImpl:2.11.0") // for Castor
121-
testRuntime("com.sun.xml.bind:jaxb-core:${jaxbVersion}")
122-
testRuntime("com.sun.xml.bind:jaxb-impl:${jaxbVersion}")
121+
testRuntime("com.sun.xml.bind:jaxb-core:2.3.0")
122+
testRuntime("com.sun.xml.bind:jaxb-impl:2.3.0")
123123
}
124124

125125
// JiBX compiler is currently not compatible with JDK 9

spring-test/spring-test.gradle

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,23 @@ dependencies {
2525
optional(project(":spring-webflux"))
2626
optional(project(":spring-webmvc"))
2727
optional(project(":spring-websocket"))
28-
optional("junit:junit:4.12")
29-
optional("org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}")
30-
optional("org.testng:testng:6.12")
28+
optional("javax.activation:activation:1.1.1")
29+
optional("javax.el:javax.el-api:3.0.1-b04")
3130
optional("javax.inject:javax.inject:1")
3231
optional("javax.servlet:javax.servlet-api:4.0.0")
3332
optional("javax.servlet.jsp:javax.servlet.jsp-api:2.3.2-b02")
3433
optional("javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:1.2.1")
35-
optional("org.apache.taglibs:taglibs-standard-jstlel:1.2.5") {
36-
exclude group: "org.apache.taglibs", module: "taglibs-standard-spec"
37-
}
38-
optional("javax.el:javax.el-api:3.0.1-b04")
34+
optional("javax.xml.bind:jaxb-api:2.3.0")
3935
optional("javax.websocket:javax.websocket-api:1.1")
40-
optional("javax.activation:activation:${activationVersion}")
41-
optional("javax.xml.bind:jaxb-api:${jaxbVersion}")
36+
optional("junit:junit:4.12")
37+
optional("org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}")
38+
optional("org.testng:testng:6.12")
4239
optional("org.aspectj:aspectjweaver:${aspectjVersion}")
4340
optional("org.codehaus.groovy:groovy-all:${groovyVersion}")
4441
optional("org.hamcrest:hamcrest-core:1.3")
42+
optional("org.apache.taglibs:taglibs-standard-jstlel:1.2.5") {
43+
exclude group: "org.apache.taglibs", module: "taglibs-standard-spec"
44+
}
4545
optional("net.sourceforge.htmlunit:htmlunit:2.27") {
4646
exclude group: "commons-logging", module: "commons-logging"
4747
}
@@ -60,10 +60,10 @@ dependencies {
6060
optional("io.projectreactor:reactor-test")
6161
testCompile(project(":spring-context-support"))
6262
testCompile(project(":spring-oxm"))
63-
testCompile("javax.mail:javax.mail-api:${javamailVersion}")
64-
testCompile("javax.ejb:javax.ejb-api:3.2")
65-
testCompile("javax.interceptor:javax.interceptor-api:1.2")
6663
testCompile("javax.cache:cache-api:1.0.0")
64+
testCompile("javax.ejb:javax.ejb-api:3.2")
65+
testCompile("javax.interceptor:javax.interceptor-api:1.2.1")
66+
testCompile("javax.mail:javax.mail-api:1.6.0")
6767
testCompile("org.hibernate:hibernate-core:5.2.11.Final")
6868
testCompile("org.hibernate:hibernate-validator:6.0.2.Final")
6969
// Enable use of the JUnitPlatform Runner
@@ -80,7 +80,7 @@ dependencies {
8080
exclude group: "org.slf4j", module: "jcl-over-slf4j"
8181
}
8282
testCompile("org.hsqldb:hsqldb:${hsqldbVersion}")
83-
testCompile("org.apache.httpcomponents:httpclient:${httpclientVersion}") {
83+
testCompile("org.apache.httpcomponents:httpclient:4.5.3") {
8484
exclude group: "commons-logging", module: "commons-logging"
8585
}
8686
testCompile('io.projectreactor.ipc:reactor-netty')
@@ -91,10 +91,10 @@ dependencies {
9191
testRuntime("org.junit.vintage:junit-vintage-engine:${junitVintageVersion}")
9292
testCompile('de.bechte.junit:junit-hierarchicalcontextrunner:4.12.1')
9393
testRuntime("org.apache.logging.log4j:log4j-jul:${log4jVersion}") // Java Util Logging for JUnit 5
94-
testRuntime("javax.annotation:javax.annotation-api:1.3")
94+
testRuntime("javax.annotation:javax.annotation-api:1.3.1")
9595
testRuntime("org.glassfish:javax.el:3.0.1-b08")
96-
testRuntime("com.sun.xml.bind:jaxb-core:${jaxbVersion}")
97-
testRuntime("com.sun.xml.bind:jaxb-impl:${jaxbVersion}")
96+
testRuntime("com.sun.xml.bind:jaxb-core:2.3.0")
97+
testRuntime("com.sun.xml.bind:jaxb-impl:2.3.0")
9898
}
9999

100100
task testNG(type: Test) {

0 commit comments

Comments
 (0)