Skip to content

Commit

Permalink
Bump to Jackson 2.16
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Dec 8, 2023
1 parent 7c67463 commit 9249e1c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<plexus-component-annotations.version>2.1.0</plexus-component-annotations.version>
<graal-sdk.version>23.0.1</graal-sdk.version>
<gizmo.version>1.7.0</gizmo.version>
<jackson-bom.version>2.15.3</jackson-bom.version>
<jackson-bom.version>2.16.0</jackson-bom.version>
<commons-logging-jboss-logging.version>1.0.0.Final</commons-logging-jboss-logging.version>
<commons-lang3.version>3.14.0</commons-lang3.version>
<commons-codec.version>1.16.0</commons-codec.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,22 @@
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;

@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());
Expand Down
2 changes: 1 addition & 1 deletion independent-projects/extension-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<version.enforcer.plugin>3.2.1</version.enforcer.plugin>
<version.surefire.plugin>3.1.2</version.surefire.plugin>
<maven-plugin-plugin.version>3.10.2</maven-plugin-plugin.version>
<jackson-bom.version>2.15.3</jackson-bom.version>
<jackson-bom.version>2.16.0</jackson-bom.version>
<smallrye-beanbag.version>1.3.2</smallrye-beanbag.version>
<junit.jupiter.version>5.10.1</junit.jupiter.version>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion independent-projects/resteasy-reactive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<vertx.version>4.4.6</vertx.version>
<rest-assured.version>5.3.2</rest-assured.version>
<commons-logging-jboss-logging.version>1.0.0.Final</commons-logging-jboss-logging.version>
<jackson-bom.version>2.15.3</jackson-bom.version>
<jackson-bom.version>2.16.0</jackson-bom.version>
<smallrye-stork.version>2.4.0</smallrye-stork.version>
<jakarta.validation-api.version>3.0.2</jakarta.validation-api.version>
<yasson.version>3.0.3</yasson.version>
Expand Down
2 changes: 1 addition & 1 deletion independent-projects/tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<!-- Versions -->
<assertj.version>3.24.2</assertj.version>
<jackson-bom.version>2.15.3</jackson-bom.version>
<jackson-bom.version>2.16.0</jackson-bom.version>
<jakarta.enterprise.cdi-api.version>4.0.1</jakarta.enterprise.cdi-api.version>
<junit.version>5.10.1</junit.version>
<commons-compress.version>1.25.0</commons-compress.version>
Expand Down

0 comments on commit 9249e1c

Please sign in to comment.