From f38be3d46a9f7fc05de52a92482657d936039802 Mon Sep 17 00:00:00 2001 From: chrislo27 Date: Sat, 19 Sep 2020 23:20:17 -0700 Subject: [PATCH] Remove Jackson Kotlin module to reduce binary size --- build.gradle | 2 +- src/main/kotlin/rhmodding/bread/util/JsonHandler.kt | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index d8a220f..321c5ef 100644 --- a/build.gradle +++ b/build.gradle @@ -32,7 +32,7 @@ dependencies { implementation "com.madgag:animated-gif-lib:+" // implementation "org.apache.logging.log4j:log4j-core:${log4j_version}" // implementation "org.apache.logging.log4j:log4j-api:${log4j_version}" - implementation "com.fasterxml.jackson.module:jackson-module-kotlin:${jackson_version}" + implementation "com.fasterxml.jackson.core:jackson-databind:${jackson_version}" implementation "org.jcodec:jcodec:0.2.3" implementation "org.jcodec:jcodec-javase:0.2.3" } diff --git a/src/main/kotlin/rhmodding/bread/util/JsonHandler.kt b/src/main/kotlin/rhmodding/bread/util/JsonHandler.kt index 0022cfe..b90a483 100644 --- a/src/main/kotlin/rhmodding/bread/util/JsonHandler.kt +++ b/src/main/kotlin/rhmodding/bread/util/JsonHandler.kt @@ -8,7 +8,6 @@ import com.fasterxml.jackson.databind.DeserializationFeature import com.fasterxml.jackson.databind.MapperFeature import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.databind.SerializationFeature -import com.fasterxml.jackson.module.kotlin.KotlinModule import java.io.OutputStream @@ -27,7 +26,6 @@ object JsonHandler { .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) .setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.NONE) .setVisibility(PropertyAccessor.FIELD, JsonAutoDetect.Visibility.ANY) - .registerModule(KotlinModule()) return mapper }