Skip to content

Commit

Permalink
Switch from afterburner to blackbird.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Tamayo-Rios committed May 26, 2023
1 parent a54e219 commit af1066e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ dependencies {
api "com.fasterxml.jackson.core:jackson-databind:${jackson_version}"
api "com.fasterxml.jackson.datatype:jackson-datatype-guava:${jackson_version}"
api "com.fasterxml.jackson.module:jackson-module-jaxb-annotations:${jackson_version}"
api "com.fasterxml.jackson.module:jackson-module-afterburner:${jackson_version}"
api "com.fasterxml.jackson.module:jackson-module-blackbird:${jackson_version}"
api "com.fasterxml.jackson.dataformat:jackson-dataformat-smile:${jackson_version}"
api "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:${jackson_version}"
api "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:${jackson_version}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.fasterxml.jackson.module.blackbird.BlackbirdModule;
import com.fasterxml.jackson.module.kotlin.KotlinModule;
import java.util.Map;
import java.util.function.Consumer;
Expand All @@ -13,7 +14,6 @@
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
import com.fasterxml.jackson.datatype.guava.GuavaModule;
import com.fasterxml.jackson.datatype.joda.JodaModule;
import com.fasterxml.jackson.module.afterburner.AfterburnerModule;
import com.google.common.collect.Maps;

public final class ObjectMappers {
Expand All @@ -40,7 +40,7 @@ protected static ObjectMapper createYamlMapper() {
yamlMapper.registerModule( new Jdk8Module() );
yamlMapper.registerModule( new GuavaModule() );
yamlMapper.registerModule( new JavaTimeModule() );
yamlMapper.registerModule( new AfterburnerModule() );
yamlMapper.registerModule( new BlackbirdModule() );
yamlMapper.registerModule( new JodaModule() );
yamlMapper.registerModule( new KotlinModule() );
yamlMapper.configure( SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false );
Expand All @@ -53,7 +53,7 @@ protected static ObjectMapper createSmileMapper() {
smileMapper.registerModule( new Jdk8Module() );
smileMapper.registerModule( new GuavaModule() );
smileMapper.registerModule( new JavaTimeModule() );
smileMapper.registerModule( new AfterburnerModule() );
smileMapper.registerModule( new BlackbirdModule() );
smileMapper.registerModule( new JodaModule() );
smileMapper.registerModule( new KotlinModule() );
smileMapper.configure( SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false );
Expand All @@ -67,7 +67,7 @@ protected static ObjectMapper createJsonMapper() {
mapper.registerModule( new JavaTimeModule() );
mapper.registerModule( new GuavaModule() );
mapper.registerModule( new JodaModule() );
mapper.registerModule( new AfterburnerModule() );
mapper.registerModule( new BlackbirdModule() );
mapper.registerModule( new KotlinModule() );
mapper.configure( SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false );
mapper.disable( DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE );
Expand Down

0 comments on commit af1066e

Please sign in to comment.