Skip to content

Commit fc11f45

Browse files
fix(client): bump to better jackson version
1 parent 273f4a7 commit fc11f45

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Diff for: openlayer-java-core/build.gradle.kts

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ configurations.all {
1717
}
1818

1919
dependencies {
20-
api("com.fasterxml.jackson.core:jackson-core:2.18.1")
21-
api("com.fasterxml.jackson.core:jackson-databind:2.18.1")
20+
api("com.fasterxml.jackson.core:jackson-core:2.18.2")
21+
api("com.fasterxml.jackson.core:jackson-databind:2.18.2")
2222
api("com.google.errorprone:error_prone_annotations:2.33.0")
2323

24-
implementation("com.fasterxml.jackson.core:jackson-annotations:2.18.1")
25-
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.1")
26-
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.1")
27-
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.18.1")
24+
implementation("com.fasterxml.jackson.core:jackson-annotations:2.18.2")
25+
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2")
26+
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2")
27+
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.18.2")
2828
implementation("org.apache.httpcomponents.core5:httpcore5:5.2.4")
2929
implementation("org.apache.httpcomponents.client5:httpclient5:5.3.1")
3030

Diff for: openlayer-java-core/src/main/kotlin/com/openlayer/api/core/Check.kt

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ internal fun checkMaxLength(name: String, value: String, maxLength: Int): String
4747
internal fun checkJacksonVersionCompatibility() {
4848
val incompatibleJacksonVersions =
4949
RUNTIME_JACKSON_VERSIONS.mapNotNull {
50+
val badVersionReason = BAD_JACKSON_VERSIONS[it.toString()]
5051
when {
5152
it.majorVersion != MINIMUM_JACKSON_VERSION.majorVersion ->
5253
it to "incompatible major version"
@@ -55,6 +56,7 @@ internal fun checkJacksonVersionCompatibility() {
5556
it.minorVersion == MINIMUM_JACKSON_VERSION.minorVersion &&
5657
it.patchLevel < MINIMUM_JACKSON_VERSION.patchLevel ->
5758
it to "patch version too low"
59+
badVersionReason != null -> it to badVersionReason
5860
else -> null
5961
}
6062
}
@@ -77,6 +79,8 @@ Double-check that you are depending on compatible Jackson versions.
7779
}
7880

7981
private val MINIMUM_JACKSON_VERSION: Version = VersionUtil.parseVersion("2.13.4", null, null)
82+
private val BAD_JACKSON_VERSIONS: Map<String, String> =
83+
mapOf("2.18.1" to "due to https://github.com/FasterXML/jackson-databind/issues/4639")
8084
private val RUNTIME_JACKSON_VERSIONS: List<Version> =
8185
listOf(
8286
com.fasterxml.jackson.core.json.PackageVersion.VERSION,

0 commit comments

Comments
 (0)