Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#14712] chore(deps): Keep Jackson on the latest patch of the lines used by Iceberg, Lance and k8s job executor (#14713)

geyanggang59ab52a39c1d
diff --git a/catalogs/catalog-glue/build.gradle.kts b/catalogs/catalog-glue/build.gradle.kts
index 3b3f699615..e7b220b630 100644
--- a/catalogs/catalog-glue/build.gradle.kts
+++ b/catalogs/catalog-glue/build.gradle.kts
@@ -24,9 +24,14 @@ plugins {
id("idea")
}
-// Keeps the Netty artifacts brought in by the AWS SDK on the single version of the catalog. The BOM sits in a
-// dedicated configuration so that it only applies to this module and is not exported to the
-// modules that depend on it.
+// Keeps the Jackson line brought in by Iceberg on its latest patch release and the Netty artifacts
+// brought in by the AWS SDK on the single version of the catalog. The BOMs sit in dedicated
+// configurations so that they only apply to this module and are not exported to the modules that
+// depend on it.
+val jacksonBom: Configuration by configurations.creating {
+ isCanBeConsumed = false
+ isCanBeResolved = false
+}
val nettyBom: Configuration by configurations.creating {
isCanBeConsumed = false
isCanBeResolved = false
@@ -37,9 +42,10 @@ listOf(
"testCompileClasspath",
"testRuntimeClasspath"
).forEach {
- configurations.named(it) { extendsFrom(nettyBom) }
+ configurations.named(it) { extendsFrom(jacksonBom, nettyBom) }
}
dependencies {
+ jacksonBom(platform(libs.jackson.bom.v221))
nettyBom(platform(libs.netty.bom))
compileOnly(project(":api"))
compileOnly(project(":common"))
diff --git a/catalogs/catalog-lakehouse-iceberg/build.gradle.kts b/catalogs/catalog-lakehouse-iceberg/build.gradle.kts
index 5537715581..91e68383b2 100644
--- a/catalogs/catalog-lakehouse-iceberg/build.gradle.kts
+++ b/catalogs/catalog-lakehouse-iceberg/build.gradle.kts
@@ -30,7 +30,23 @@ val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
val icebergVersion: String = libs.versions.iceberg.get()
val scalaCollectionCompatVersion: String = libs.versions.scala.collection.compat.get()
+// Keeps the Jackson line brought in by Iceberg on its latest patch release. The BOM sits in a
+// dedicated configuration so that it only applies to this module and is not exported to the
+// modules that depend on it.
+val jacksonBom: Configuration by configurations.creating {
+ isCanBeConsumed = false
+ isCanBeResolved = false
+}
+listOf(
+ "compileClasspath",
+ "runtimeClasspath",
+ "testCompileClasspath",
+ "testRuntimeClasspath"
+).forEach {
+ configurations.named(it) { extendsFrom(jacksonBom) }
+}
dependencies {
+ jacksonBom(platform(libs.jackson.bom.v221))
compileOnly(project(":api"))
compileOnly(project(":common"))
compileOnly(project(":core"))
diff --git a/dev/release/maven/README.md b/dev/release/maven/README.md
index 68599d2f01..99d80ac009 100644
--- a/dev/release/maven/README.md
+++ b/dev/release/maven/README.md
@@ -86,8 +86,9 @@ inventory. A dependency's POM license declaration may omit embedded third-party
and [1.0.90 MIT text](https://github.com/wrandelshofer/FastDoubleParser/blob/v1.0.90/LICENSE)
respectively. Jackson 2.18.3 also needs the Boost text identified by its parser
NOTICE. Existing fast_float and bigint texts are preserved.
- Versions 2.9.2/2.13.5 contain neither parser; 2.21.3 already includes their full
- license texts. These audited versions require no supplements.
+ Versions 2.9.2/2.13.5 contain neither parser; 2.18.12, 2.21.3 and 2.21.8 already
+ include their full license texts (identical in all three). These audited versions
+ require no supplements.
- Reactive Streams 1.0.4: [MIT-0 LICENSE](https://github.com/reactive-streams/reactive-streams-jvm/blob/v1.0.4/LICENSE).
- JaCoCo runtime 0.8.8: its binary `about.html` identifies EPL-2.0 and the
embedded ASM 9.2 BSD code; retain that file (which already contains the ASM BSD
diff --git a/dev/release/maven/dependencies.txt b/dev/release/maven/dependencies.txt
index 5c00ffe493..10c504c5b6 100644
--- a/dev/release/maven/dependencies.txt
+++ b/dev/release/maven/dependencies.txt
@@ -57,5 +57,7 @@ com.fasterxml.jackson.core:jackson-core:2.9.2=
com.fasterxml.jackson.core:jackson-core:2.13.5=
com.fasterxml.jackson.core:jackson-core:2.15.2=LICENSE.fastdoubleparser-0.9.0,LICENSE.schubfach | Jackson Core (Apache-2.0), including FastDoubleParser 0.9.0 and Schubfach (MIT), bigint (BSD-2-Clause)
com.fasterxml.jackson.core:jackson-core:2.18.3=LICENSE.fastdoubleparser-1.0.90,LICENSE.schubfach,LICENSE.fastdoubleparser-boost | Jackson Core (Apache-2.0), including FastDoubleParser 1.0.90 and Schubfach (MIT), fast_double_parser (BSL-1.0), fast_float (MIT), bigint (BSD-2-Clause)
-# This version already includes the complete parser license texts.
+# These versions already include the complete parser license texts.
+com.fasterxml.jackson.core:jackson-core:2.18.12=
com.fasterxml.jackson.core:jackson-core:2.21.3=
+com.fasterxml.jackson.core:jackson-core:2.21.8=
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index d129d189db..cbecb219d6 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -28,6 +28,11 @@ reactor-netty-core = "1.2.1"
junit = "5.8.1"
junit-platform = "1.8.1"
jackson = "2.15.2"
+# Modules that resolve a newer Jackson line than the project pin above (through Iceberg, Arrow or
+# fabric8) are kept on the latest patch of that line with their own BOM. Do not collapse them into
+# one version: each line is audited separately in dev/release/maven/dependencies.txt.
+jackson218 = "2.18.12"
+jackson221 = "2.21.8"
snakeyaml = "2.0"
gson = "2.11.0"
guava = "32.1.3-jre"
@@ -216,6 +221,8 @@ azure-identity = { group = "com.azure", name = "azure-identity", version.ref = "
azure-storage-file-datalake = { group = "com.azure", name = "azure-storage-file-datalake", version.ref = "azure-storage-file-datalake"}
reactor-netty-http = {group = "io.projectreactor.netty", name = "reactor-netty-http", version.ref = "reactor-netty-http"}
reactor-netty-core = {group = "io.projectreactor.netty", name = "reactor-netty-core", version.ref = "reactor-netty-core"}
+jackson-bom-v218 = { group = "com.fasterxml.jackson", name = "jackson-bom", version.ref = "jackson218" }
+jackson-bom-v221 = { group = "com.fasterxml.jackson", name = "jackson-bom", version.ref = "jackson221" }
jackson-databind = { group = "com.fasterxml.jackson.core", name = "jackson-databind", version.ref = "jackson" }
jackson-annotations = { group = "com.fasterxml.jackson.core", name = "jackson-annotations", version.ref = "jackson" }
jackson-datatype-jdk8 = { group = "com.fasterxml.jackson.datatype", name = "jackson-datatype-jdk8", version.ref = "jackson" }
diff --git a/iceberg/iceberg-rest-server/build.gradle.kts b/iceberg/iceberg-rest-server/build.gradle.kts
index a93d09d8ae..b129b66588 100644
--- a/iceberg/iceberg-rest-server/build.gradle.kts
+++ b/iceberg/iceberg-rest-server/build.gradle.kts
@@ -30,7 +30,23 @@ val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
val icebergVersion: String = libs.versions.iceberg.get()
val scalaCollectionCompatVersion: String = libs.versions.scala.collection.compat.get()
+// Keeps the Jackson line brought in by Iceberg on its latest patch release. The BOM sits in a
+// dedicated configuration so that it only applies to this module and is not exported to the
+// modules that depend on it.
+val jacksonBom: Configuration by configurations.creating {
+ isCanBeConsumed = false
+ isCanBeResolved = false
+}
+listOf(
+ "compileClasspath",
+ "runtimeClasspath",
+ "testCompileClasspath",
+ "testRuntimeClasspath"
+).forEach {
+ configurations.named(it) { extendsFrom(jacksonBom) }
+}
dependencies {
+ jacksonBom(platform(libs.jackson.bom.v221))
implementation(project(":api"))
implementation(project(":bundles:aliyun"))
implementation(project(":bundles:aws"))
diff --git a/lance/lance-rest-server/build.gradle.kts b/lance/lance-rest-server/build.gradle.kts
index b528c63395..ec56602eb5 100644
--- a/lance/lance-rest-server/build.gradle.kts
+++ b/lance/lance-rest-server/build.gradle.kts
@@ -65,7 +65,23 @@ lanceSparkBundleVersions.forEach { version ->
}
}
+// Keeps the Jackson line brought in by Arrow on its latest patch release. The BOM sits in a
+// dedicated configuration so that it only applies to this module and is not exported to the
+// modules that depend on it.
+val jacksonBom: Configuration by configurations.creating {
+ isCanBeConsumed = false
+ isCanBeResolved = false
+}
+listOf(
+ "compileClasspath",
+ "runtimeClasspath",
+ "testCompileClasspath",
+ "testRuntimeClasspath"
+).forEach {
+ configurations.named(it) { extendsFrom(jacksonBom) }
+}
dependencies {
+ jacksonBom(platform(libs.jackson.bom.v218))
implementation(project(":api"))
implementation(project(":common")) {
exclude("*")
diff --git a/plugins/k8s-job-executor/build.gradle.kts b/plugins/k8s-job-executor/build.gradle.kts
index 495bf59b93..f77863df40 100644
--- a/plugins/k8s-job-executor/build.gradle.kts
+++ b/plugins/k8s-job-executor/build.gradle.kts
@@ -30,9 +30,25 @@ val shadedJarTest: SourceSet by sourceSets.creating
val shadedJarTestImplementation: Configuration by configurations.getting
val shadedJarTestRuntimeOnly: Configuration by configurations.getting
+// Keeps the Jackson line brought in by fabric8 on its latest patch release. The BOM sits in a
+// dedicated configuration so that it only applies to this module and is not exported to the
+// modules that depend on it.
+val jacksonBom: Configuration by configurations.creating {
+ isCanBeConsumed = false
+ isCanBeResolved = false
+}
+listOf(
+ "compileClasspath",
+ "runtimeClasspath",
+ "testCompileClasspath",
+ "testRuntimeClasspath"
+).forEach {
+ configurations.named(it) { extendsFrom(jacksonBom) }
+}
dependencies {
annotationProcessor(libs.lombok)
+ jacksonBom(platform(libs.jackson.bom.v218))
// Provided by the Gravitino server at runtime, never bundled into the shaded jar.
compileOnly(project(":api"))
compileOnly(project(":common"))