From f72b4a64a8100a2951dba23ff8f67eb5135fa3ed Mon Sep 17 00:00:00 2001 From: Michael Minella Date: Thu, 23 Mar 2017 10:07:05 -0500 Subject: [PATCH] Changed XStream and Jackson dependencies With the previous commit, XStream is no longer a required dependency (since Jackson is now the default method for ExecutionContext serialization). This commit updates XStream to be optional and Jackson to be required. --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index fd31ebee6..ebcf0beb8 100644 --- a/build.gradle +++ b/build.gradle @@ -265,7 +265,7 @@ project('spring-batch-core') { compile project(":spring-batch-infrastructure") compile "com.ibm.jbatch:com.ibm.jbatch-tck-spi:$jbatchTckSpi" - compile "com.thoughtworks.xstream:xstream:$xstreamVersion" + compile "com.fasterxml.jackson.core:jackson-databind:${jackson2Version}" compile ("org.codehaus.jettison:jettison:$jettisonVersion") { exclude group: 'stax', module: 'stax-api' } @@ -284,12 +284,12 @@ project('spring-batch-core') { testCompile "commons-dbcp:commons-dbcp:$commonsDdbcpVersion" testCompile "junit:junit:${junitVersion}" testCompile "org.hamcrest:hamcrest-library:$hamcrestVersion" + optional "com.thoughtworks.xstream:xstream:$xstreamVersion" optional "org.aspectj:aspectjrt:$aspectjVersion" optional "org.aspectj:aspectjweaver:$aspectjVersion" optional "org.springframework:spring-jdbc:$springVersion" optional "org.slf4j:slf4j-log4j12:$slf4jVersion" optional "log4j:log4j:$log4jVersion" - optional "com.fasterxml.jackson.core:jackson-databind:${jackson2Version}" optional "javax.batch:javax.batch-api:$javaxBatchApiVersion" }