Skip to content

Commit

Permalink
Remove Jackson Kotlin module to reduce binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislo27 committed Sep 20, 2020
1 parent 1ae225b commit f38be3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 0 additions & 2 deletions src/main/kotlin/rhmodding/bread/util/JsonHandler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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
}
Expand Down

0 comments on commit f38be3d

Please sign in to comment.