Skip to content

Commit 1e3e661

Browse files
committed
Add jackson-annotations as an explicit test dependency
This was implicitly available as a transitive dependency, but that should not be relied on. It is required for `JsonAutoDetect.Visibility.ANY`. Note that `jackson-annotations` is versioned independently of the rest of Jackson and does not use a path-level version suffix.
1 parent 3e7bcf7 commit 1e3e661

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ kotlinx-serialization = "1.10.0"
2121
autoService = "1.1.1"
2222
incap = "1.0.0"
2323
jackson = "2.21.1"
24+
jacksonAnnotations = "2.21"
2425

2526
[libraries]
2627
androidPlugin = "com.android.tools.build:gradle:9.1.0"
@@ -63,6 +64,7 @@ rxjava3 = { module = "io.reactivex.rxjava3:rxjava", version = "3.1.12" }
6364
reactiveStreams = { module = "org.reactivestreams:reactive-streams", version = "1.0.4" }
6465
scalaLibrary = { module = "org.scala-lang:scala-library", version = "2.13.18" }
6566
gson = { module = "com.google.code.gson:gson", version = "2.13.2" }
67+
jacksonAnnotations = { module = "com.fasterxml.jackson.core:jackson-annotations", version.ref = "jacksonAnnotations" }
6668
jacksonDatabind = { module = "com.fasterxml.jackson.core:jackson-databind", version.ref = "jackson" }
6769
jacksonDataformatCbor = { module = "com.fasterxml.jackson.dataformat:jackson-dataformat-cbor", version.ref = "jackson" }
6870
jaxbApi = { module = "javax.xml.bind:jaxb-api", version = "2.3.1" }

retrofit-converters/jackson/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ dependencies {
1010
testImplementation libs.truth
1111
testImplementation libs.okhttp.mockwebserver
1212
testImplementation libs.testParameterInjector
13+
testImplementation libs.jacksonAnnotations
1314
testImplementation libs.jacksonDataformatCbor
1415
}
1516

0 commit comments

Comments
 (0)