From 9249e1cd8ad7980386bc7c27df6cb7a5b9e3aac0 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 24 Nov 2023 08:54:26 +0200 Subject: [PATCH] Bump to Jackson 2.16 --- bom/application/pom.xml | 2 +- .../deployment/ZonedDateTimeObjectMapperCustomizer.java | 9 +++++++-- independent-projects/extension-maven-plugin/pom.xml | 2 +- independent-projects/resteasy-reactive/pom.xml | 2 +- independent-projects/tools/pom.xml | 2 +- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 81e0ddea0794f..a9f44b0e2c4b7 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -91,7 +91,7 @@ 2.1.0 23.0.1 1.7.0 - 2.15.3 + 2.16.0 1.0.0.Final 3.14.0 1.16.0 diff --git a/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/ZonedDateTimeObjectMapperCustomizer.java b/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/ZonedDateTimeObjectMapperCustomizer.java index 950ecc5c60c96..a9ffa8bb49077 100644 --- a/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/ZonedDateTimeObjectMapperCustomizer.java +++ b/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/ZonedDateTimeObjectMapperCustomizer.java @@ -13,7 +13,7 @@ import com.fasterxml.jackson.databind.JsonDeserializer; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; +import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.datatype.jsr310.ser.ZonedDateTimeSerializer; import io.quarkus.jackson.ObjectMapperCustomizer; @@ -21,9 +21,14 @@ @Singleton public class ZonedDateTimeObjectMapperCustomizer implements ObjectMapperCustomizer { + @Override + public int priority() { + return MINIMUM_PRIORITY; + } + @Override public void customize(ObjectMapper objectMapper) { - JavaTimeModule customDateModule = new JavaTimeModule(); + SimpleModule customDateModule = new SimpleModule(); customDateModule.addSerializer(ZonedDateTime.class, new ZonedDateTimeSerializer( new DateTimeFormatterBuilder().appendInstant(0).toFormatter().withZone(ZoneId.of("Z")))); customDateModule.addDeserializer(ZonedDateTime.class, new ZonedDateTimeEuropeLondonDeserializer()); diff --git a/independent-projects/extension-maven-plugin/pom.xml b/independent-projects/extension-maven-plugin/pom.xml index 0d739ecfd75d2..46d34da8e3412 100644 --- a/independent-projects/extension-maven-plugin/pom.xml +++ b/independent-projects/extension-maven-plugin/pom.xml @@ -42,7 +42,7 @@ 3.2.1 3.1.2 3.10.2 - 2.15.3 + 2.16.0 1.3.2 5.10.1 diff --git a/independent-projects/resteasy-reactive/pom.xml b/independent-projects/resteasy-reactive/pom.xml index a2a9f7135c243..f5cce96962437 100644 --- a/independent-projects/resteasy-reactive/pom.xml +++ b/independent-projects/resteasy-reactive/pom.xml @@ -63,7 +63,7 @@ 4.4.6 5.3.2 1.0.0.Final - 2.15.3 + 2.16.0 2.4.0 3.0.2 3.0.3 diff --git a/independent-projects/tools/pom.xml b/independent-projects/tools/pom.xml index 6822bab5a2e96..20e306446b8b7 100644 --- a/independent-projects/tools/pom.xml +++ b/independent-projects/tools/pom.xml @@ -49,7 +49,7 @@ 3.24.2 - 2.15.3 + 2.16.0 4.0.1 5.10.1 1.25.0