diff --git a/core/pom.xml b/core/pom.xml index c95417b8..544da77b 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -71,10 +71,6 @@ io.openapitools.jackson.dataformat jackson-dataformat-hal - - io.cloudevents - cloudevents-api - org.junit.jupiter diff --git a/core/src/main/java/com/adobe/aio/util/JacksonUtil.java b/core/src/main/java/com/adobe/aio/util/JacksonUtil.java index 9febae2b..7407ec35 100644 --- a/core/src/main/java/com/adobe/aio/util/JacksonUtil.java +++ b/core/src/main/java/com/adobe/aio/util/JacksonUtil.java @@ -17,13 +17,9 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.json.JsonMapper; -import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.databind.node.TextNode; import com.fasterxml.jackson.datatype.jdk8.Jdk8Module; -import io.cloudevents.json.ZonedDateTimeDeserializer; -import io.cloudevents.json.ZonedDateTimeSerializer; import io.openapitools.jackson.dataformat.hal.JacksonHALModule; -import java.time.ZonedDateTime; import org.apache.commons.lang3.StringUtils; public class JacksonUtil { @@ -35,10 +31,6 @@ private JacksonUtil() { JsonMapper.builder() .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) .serializationInclusion(Include.NON_NULL) - .addModule(new SimpleModule() - .addSerializer(ZonedDateTime.class, new ZonedDateTimeSerializer()) - .addDeserializer(ZonedDateTime.class, new ZonedDateTimeDeserializer())) - // let's stick to CloudEvents v1 ISO_OFFSET_DATE_TIME date format .addModule(new JacksonHALModule()) .addModule(new Jdk8Module()) .build(); diff --git a/pom.xml b/pom.xml index bb66a5b8..8a49c897 100644 --- a/pom.xml +++ b/pom.xml @@ -104,9 +104,6 @@ 2.13.4 0.11.5 - 1.2.0 - - 1.0.9 @@ -124,12 +121,6 @@ ${commons-text.version} - - io.cloudevents - cloudevents-api - ${cloudevents.version} - - org.apache.commons commons-lang3