Skip to content

Commit

Permalink
Remove transitive jackson-databind dependency from httpclient-netty (#…
Browse files Browse the repository at this point in the history
…725)

* Remove transitive jackson-databind dependency from httpclient-netty

* remove one superfluous exclude
  • Loading branch information
yawkat authored Oct 16, 2023
1 parent ea1d018 commit b007eef
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
8 changes: 5 additions & 3 deletions oraclecloud-httpclient-netty/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ dependencies {
annotationProcessor mnSerde.micronaut.serde.processor
implementation mn.netty.codec.http

implementation libs.oci.common
api libs.oci.common.httpclient
implementation(libs.oci.common) {
exclude(group:"com.fasterxml.jackson.core", module:"jackson-databind")
}
api(libs.oci.common.httpclient)
api mnSerde.micronaut.serde.api
implementation mn.micronaut.http.client
implementation mn.reactor
Expand All @@ -24,7 +26,7 @@ dependencies {

testAnnotationProcessor mn.micronaut.inject.java
testAnnotationProcessor projects.micronautOraclecloudSerdeProcessor
testRuntimeOnly mn.micronaut.jackson.databind
testCompileOnly mn.micronaut.jackson.databind
testRuntimeOnly mn.micronaut.runtime

testImplementation mn.micronaut.inject.java.test
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package io.micronaut.oraclecloud.serde

import spock.lang.Specification

class NoJacksonOnClasspath extends Specification {
def 'no jackson on classpath'() {
when:
Class.forName("com.fasterxml.jackson.databind.ObjectMapper")
then:
thrown ClassNotFoundException
}
}

0 comments on commit b007eef

Please sign in to comment.