@@ -283,9 +283,6 @@ project('spring-batch-core') {
283
283
compile project(" :spring-batch-infrastructure" )
284
284
285
285
compile " com.fasterxml.jackson.core:jackson-databind:${ jackson2Version} "
286
- compile (" org.codehaus.jettison:jettison:$jettisonVersion " ) {
287
- exclude group : ' stax' , module : ' stax-api'
288
- }
289
286
compile " org.springframework:spring-aop:$springVersion "
290
287
compile " org.springframework:spring-beans:$springVersion "
291
288
compile " org.springframework:spring-context:$springVersion "
@@ -305,6 +302,10 @@ project('spring-batch-core') {
305
302
testCompile " org.hamcrest:hamcrest-library:$hamcrestVersion "
306
303
optional " com.ibm.jbatch:com.ibm.jbatch-tck-spi:$jbatchTckSpi "
307
304
optional " com.thoughtworks.xstream:xstream:$xstreamVersion "
305
+ compile(" org.codehaus.jettison:jettison:$jettisonVersion " ) { dep ->
306
+ optional dep
307
+ exclude group : ' stax' , module : ' stax-api'
308
+ }
308
309
optional " org.aspectj:aspectjrt:$aspectjVersion "
309
310
optional " org.aspectj:aspectjweaver:$aspectjVersion "
310
311
optional " org.springframework:spring-jdbc:$springVersion "
@@ -474,6 +475,9 @@ project('spring-batch-infrastructure-tests') {
474
475
testCompile " org.apache.logging.log4j:log4j-api:$log4jVersion "
475
476
testCompile " org.apache.logging.log4j:log4j-core:$log4jVersion "
476
477
testCompile " com.thoughtworks.xstream:xstream:$xstreamVersion "
478
+ testCompile(" org.codehaus.jettison:jettison:$jettisonVersion " ) {
479
+ exclude group : ' stax' , module : ' stax-api'
480
+ }
477
481
testCompile(" com.fasterxml.woodstox:woodstox-core:$woodstoxVersion " ) {
478
482
exclude group : ' stax' , module : ' stax-api'
479
483
}
@@ -591,6 +595,9 @@ project('spring-batch-samples') {
591
595
compile " commons-io:commons-io:$commonsIoVersion "
592
596
compile " org.apache.commons:commons-dbcp2:$commonsDdbcpVersion "
593
597
compile " com.thoughtworks.xstream:xstream:$xstreamVersion "
598
+ compile(" org.codehaus.jettison:jettison:$jettisonVersion " ) {
599
+ exclude group : ' stax' , module : ' stax-api'
600
+ }
594
601
compile(" com.fasterxml.woodstox:woodstox-core:$woodstoxVersion " ) {
595
602
exclude group : ' stax' , module : ' stax-api'
596
603
}
0 commit comments