From b82243a2ab39f6af877c68e86e45946316ea07a2 Mon Sep 17 00:00:00 2001 From: neowcng Date: Wed, 3 Feb 2021 22:12:41 +0800 Subject: [PATCH] migrate to jackson 2 --- build.gradle | 4 ++-- src/main/java/com/emc/rest/smart/SmartClientFactory.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 1b90644..e2382c0 100644 --- a/build.gradle +++ b/build.gradle @@ -39,8 +39,8 @@ apply from: "$commonBuildDir/ecs-publish.gradle" dependencies { compile 'com.sun.jersey:jersey-client:1.19.4', 'com.sun.jersey.contribs:jersey-apache-client4:1.19.4', - 'org.codehaus.jackson:jackson-jaxrs:1.9.13', - 'org.codehaus.jackson:jackson-xc:1.9.13', + 'com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.12.1', + 'com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.12.1', 'org.apache.httpcomponents:httpclient:4.2.6', 'org.slf4j:slf4j-api:1.7.5' compile('com.sun.jersey:jersey-json:1.19.4') { diff --git a/src/main/java/com/emc/rest/smart/SmartClientFactory.java b/src/main/java/com/emc/rest/smart/SmartClientFactory.java index e450afa..b7b2b06 100644 --- a/src/main/java/com/emc/rest/smart/SmartClientFactory.java +++ b/src/main/java/com/emc/rest/smart/SmartClientFactory.java @@ -36,7 +36,7 @@ import com.sun.jersey.core.impl.provider.entity.ByteArrayProvider; import com.sun.jersey.core.impl.provider.entity.FileProvider; import com.sun.jersey.core.impl.provider.entity.InputStreamProvider; -import org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider; +import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider; import org.slf4j.Logger; import org.slf4j.LoggerFactory;