@@ -32,6 +32,7 @@ configure(allprojects) { project ->
32
32
version = qualifyVersionIfNecessary(version)
33
33
34
34
ext. activationApiVersion = " 1.1.1"
35
+ ext. annotationApiVersion = " 1.2"
35
36
ext. aspectjVersion = " 1.9.0.BETA-4"
36
37
ext. beanvalVersion = " 1.1.0.Final"
37
38
ext. caffeineVersion = " 2.3.1"
@@ -55,6 +56,7 @@ configure(allprojects) { project ->
55
56
ext. jackson2Version = " 2.8.1"
56
57
ext. javamailVersion = " 1.5.5"
57
58
ext. jaxbVersion = " 2.2.11"
59
+ ext. jaxwsVersion = " 2.2.11"
58
60
ext. jcaVersion = " 1.7"
59
61
ext. jettyVersion = " 9.3.10.v20160621"
60
62
ext. jodaVersion = " 2.9.4"
@@ -489,6 +491,8 @@ project("spring-context") {
489
491
compile(files(project(" :spring-core" ). cglibRepackJar))
490
492
optional(project(" :spring-instrument" ))
491
493
optional(" javax.inject:javax.inject:1" )
494
+ optional(" javax.annotation:javax.annotation-api:${ annotationApiVersion} " )
495
+ optional(" javax.xml.ws:jaxws-api:${ jaxwsVersion} " )
492
496
optional(" javax.ejb:javax.ejb-api:${ ejbApiVersion} " )
493
497
optional(" javax.interceptor:javax.interceptor-api:${ interceptorApiVersion} " )
494
498
optional(" javax.enterprise.concurrent:javax.enterprise.concurrent-api:1.0" )
@@ -517,6 +521,8 @@ project("spring-oxm") {
517
521
dependencies {
518
522
compile(project(" :spring-beans" ))
519
523
compile(project(" :spring-core" ))
524
+ optional(" javax.xml.bind:jaxb-api:${ jaxbVersion} " )
525
+ optional(" javax.activation:activation:${ activationApiVersion} " )
520
526
optional(" org.codehaus.castor:castor-xml:1.4.1" ) {
521
527
exclude group : ' stax' , module : ' stax-api'
522
528
exclude group : " org.springframework" , module : " spring-context"
@@ -535,10 +541,8 @@ project("spring-oxm") {
535
541
testCompile(files(genCastor. classesDir). builtBy(genCastor))
536
542
testCompile(files(genJaxb. classesDir). builtBy(genJaxb))
537
543
testRuntime(" xerces:xercesImpl:2.11.0" ) // for Castor
538
- testRuntime(" javax.xml.bind:jaxb-api:${ jaxbVersion} " )
539
544
testRuntime(" com.sun.xml.bind:jaxb-core:${ jaxbVersion} " )
540
545
testRuntime(" com.sun.xml.bind:jaxb-impl:${ jaxbVersion} " )
541
- testRuntime(" javax.activation:activation:${ activationApiVersion} " )
542
546
}
543
547
}
544
548
@@ -562,6 +566,7 @@ project("spring-messaging") {
562
566
}
563
567
optional(" org.eclipse.jetty.websocket:websocket-client:${ jettyVersion} " )
564
568
optional(" com.fasterxml.jackson.core:jackson-databind:${ jackson2Version} " )
569
+ optional(" javax.xml.bind:jaxb-api:${ jaxbVersion} " )
565
570
testCompile(" javax.inject:javax.inject-tck:1" )
566
571
testCompile(" javax.servlet:javax.servlet-api:${ servletVersion} " )
567
572
testCompile(" javax.validation:validation-api:${ beanvalVersion} " )
@@ -579,7 +584,6 @@ project("spring-messaging") {
579
584
testCompile(" io.netty:netty-all:${ nettyVersion} " )
580
585
testCompile(" org.slf4j:slf4j-jcl:${ slf4jVersion} " )
581
586
testCompile(" org.xmlunit:xmlunit-matchers:${ xmlunitVersion} " )
582
- testRuntime(" javax.xml.bind:jaxb-api:${ jaxbVersion} " )
583
587
testRuntime(" com.sun.xml.bind:jaxb-core:${ jaxbVersion} " )
584
588
testRuntime(" com.sun.xml.bind:jaxb-impl:${ jaxbVersion} " )
585
589
testRuntime(" javax.activation:activation:${ activationApiVersion} " )
@@ -650,6 +654,7 @@ project("spring-context-support") {
650
654
compile(project(" :spring-context" ))
651
655
optional(project(" :spring-jdbc" )) // for Quartz support
652
656
optional(project(" :spring-tx" )) // for Quartz support
657
+ optional(" javax.activation:activation:${ activationApiVersion} " )
653
658
optional(" javax.mail:javax.mail-api:${ javamailVersion} " )
654
659
optional(" javax.cache:cache-api:1.0.0" )
655
660
optional(" com.github.ben-manes.caffeine:caffeine:${ caffeineVersion} " )
@@ -697,6 +702,7 @@ project("spring-web") {
697
702
optional(" javax.el:javax.el-api:${ elApiVersion} " )
698
703
optional(" javax.faces:javax.faces-api:2.2" )
699
704
optional(" javax.validation:validation-api:${ beanvalVersion} " )
705
+ optional(" javax.activation:activation:${ activationApiVersion} " )
700
706
optional(" org.codehaus.groovy:groovy-all:${ groovyVersion} " )
701
707
optional(" com.caucho:hessian:4.0.38" )
702
708
optional(" commons-fileupload:commons-fileupload:${ fileuploadVersion} " )
@@ -731,6 +737,8 @@ project("spring-web") {
731
737
optional(" com.google.protobuf:protobuf-java:${ protobufVersion} " )
732
738
optional(" com.google.protobuf:protobuf-java-util:${ protobufVersion} " )
733
739
optional(" com.googlecode.protobuf-java-format:protobuf-java-format:1.4" )
740
+ optional(" javax.xml.bind:jaxb-api:${ jaxbVersion} " )
741
+ optional(" javax.xml.ws:jaxws-api:${ jaxwsVersion} " )
734
742
optional(" javax.mail:javax.mail-api:${ javamailVersion} " )
735
743
testCompile(project(" :spring-context-support" )) // for JafMediaTypeFactory
736
744
testCompile(" org.xmlunit:xmlunit-matchers:${ xmlunitVersion} " )
@@ -747,11 +755,8 @@ project("spring-web") {
747
755
testCompile(" org.eclipse.jetty:jetty-server:${ jettyVersion} " )
748
756
testCompile(" org.eclipse.jetty:jetty-servlet:${ jettyVersion} " )
749
757
testCompile(" com.squareup.okhttp3:mockwebserver:3.0.1" )
750
- testRuntime(" javax.xml.ws:jaxws-api:2.2.11" )
751
- testRuntime(" javax.xml.bind:jaxb-api:${ jaxbVersion} " )
752
758
testRuntime(" com.sun.xml.bind:jaxb-core:${ jaxbVersion} " )
753
759
testRuntime(" com.sun.xml.bind:jaxb-impl:${ jaxbVersion} " )
754
- testRuntime(" javax.activation:activation:${ activationApiVersion} " )
755
760
}
756
761
}
757
762
@@ -765,6 +770,7 @@ project("spring-web-reactive") {
765
770
compile " io.projectreactor:reactor-core:${ reactorCoreVersion} "
766
771
optional(project(" :spring-context-support" )) // for FreeMarker support
767
772
provided " javax.servlet:javax.servlet-api:${ servletVersion} "
773
+ optional(" javax.xml.bind:jaxb-api:${ jaxbVersion} " )
768
774
optional(" com.fasterxml.jackson.core:jackson-databind:${ jackson2Version} " )
769
775
optional(" org.freemarker:freemarker:${ freemarkerVersion} " )
770
776
optional " org.apache.httpcomponents:httpclient:4.5.1" // Needed to run Javadoc without error
@@ -782,7 +788,6 @@ project("spring-web-reactive") {
782
788
testCompile(" org.slf4j:slf4j-jcl:${ slf4jVersion} " )
783
789
testCompile(" javax.validation:validation-api:${ beanvalVersion} " )
784
790
testCompile(" org.xmlunit:xmlunit-matchers:${ xmlunitVersion} " )
785
- testRuntime(" javax.xml.bind:jaxb-api:${ jaxbVersion} " )
786
791
testRuntime(" com.sun.xml.bind:jaxb-core:${ jaxbVersion} " )
787
792
testRuntime(" com.sun.xml.bind:jaxb-impl:${ jaxbVersion} " )
788
793
testRuntime(" javax.activation:activation:${ activationApiVersion} " )
@@ -830,6 +835,7 @@ project("spring-webmvc") {
830
835
optional(project(" :spring-oxm" )) // for MarshallingView
831
836
optional(" javax.servlet.jsp:javax.servlet.jsp-api:${ jspVersion} " )
832
837
optional(" javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:1.2.1" )
838
+ optional(" javax.xml.bind:jaxb-api:${ jaxbVersion} " )
833
839
optional(" org.apache.poi:poi:${ poiVersion} " )
834
840
optional(" org.apache.poi:poi-ooxml:${ poiVersion} " )
835
841
optional(" org.freemarker:freemarker:${ freemarkerVersion} " )
@@ -883,7 +889,6 @@ project("spring-webmvc") {
883
889
testRuntime(" org.jruby:jruby:9.1.2.0" )
884
890
testRuntime(" org.python:jython-standalone:2.5.3" )
885
891
testRuntime(" org.webjars:underscorejs:1.8.3" )
886
- testRuntime(" javax.xml.bind:jaxb-api:${ jaxbVersion} " )
887
892
testRuntime(" com.sun.xml.bind:jaxb-core:${ jaxbVersion} " )
888
893
testRuntime(" com.sun.xml.bind:jaxb-impl:${ jaxbVersion} " )
889
894
testRuntime(" javax.activation:activation:${ activationApiVersion} " )
@@ -965,6 +970,8 @@ project("spring-test") {
965
970
}
966
971
optional(" javax.el:javax.el-api:${ elApiVersion} " )
967
972
optional(" javax.websocket:javax.websocket-api:${ websocketVersion} " )
973
+ optional(" javax.activation:activation:${ activationApiVersion} " )
974
+ optional(" javax.xml.bind:jaxb-api:${ jaxbVersion} " )
968
975
optional(" org.aspectj:aspectjweaver:${ aspectjVersion} " )
969
976
optional(" org.codehaus.groovy:groovy-all:${ groovyVersion} " )
970
977
optional(" org.hamcrest:hamcrest-core:${ hamcrestVersion} " )
@@ -1004,10 +1011,8 @@ project("spring-test") {
1004
1011
testRuntime(" org.apache.logging.log4j:log4j-jul:${ log4jVersion} " )
1005
1012
testRuntime(" org.ehcache:ehcache:${ ehcache3Version} " )
1006
1013
testRuntime(" org.terracotta:management-model:2.0.0" )
1007
- testRuntime(" javax.xml.bind:jaxb-api:${ jaxbVersion} " )
1008
1014
testRuntime(" com.sun.xml.bind:jaxb-core:${ jaxbVersion} " )
1009
1015
testRuntime(" com.sun.xml.bind:jaxb-impl:${ jaxbVersion} " )
1010
- testRuntime(" javax.activation:activation:${ activationApiVersion} " )
1011
1016
}
1012
1017
1013
1018
task testNG(type : Test ) {
0 commit comments