This is an automated email from the ASF dual-hosted git repository.
diqiu50 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 59ab52a39c [#14712] chore(deps): Keep Jackson on the latest patch of
the lines used by Iceberg, Lance and k8s job executor (#14713)
59ab52a39c is described below
commit 59ab52a39c1df2f03fb8166750d0ff17d573f426
Author: geyanggang <[email protected]>
AuthorDate: Fri Nov 13 10:07:09 2026 +0800
[#14712] chore(deps): Keep Jackson on the latest patch of the lines used by
Iceberg, Lance and k8s job executor (#14713)
### What changes were proposed in this pull request?
- Add `jackson218` (2.18.12) and `jackson221` (2.21.8) and their BOMs to
the version catalog.
- Apply the 2.21 BOM to iceberg-rest-server, catalog-lakehouse-iceberg
and catalog-glue, and the 2.18 BOM to lance-rest-server and
k8s-job-executor. The BOM sits in a dedicated configuration, so it
applies only to the module's own classpaths and is not exported to
modules that depend on it (for example iceberg-rest-server-experiment
keeps its own Jackson pin).
- Add the two jackson-core versions to
dev/release/maven/dependencies.txt; their legal files are identical to
the already audited 2.21.3.
### Why are the changes needed?
Routine dependency maintenance: keep each Jackson line on its latest
patch release. The project-wide `jackson = "2.15.2"` and the other lines
in the distribution are unchanged.
Fix: #14712
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
- Compared the full distribution jar list before and after: only the
Jackson jars of the five modules changed.
- spotlessCheck, testMavenLegalFiles and :plugins:k8s-job-executor:check
(including shadedJarTest) pass.
- Unit tests pass for the five modules.
- Integration tests in deploy mode pass: IcebergRESTMemoryCatalogIT,
IcebergRESTJdbcCatalogIT, IcebergRESTHiveCatalogIT,
CatalogIcebergRestIT, MotoGlueCatalogIT, LanceRESTServiceIT,
LanceFormatBoundaryIT.
---
catalogs/catalog-glue/build.gradle.kts | 14 ++++++++++----
catalogs/catalog-lakehouse-iceberg/build.gradle.kts | 16 ++++++++++++++++
dev/release/maven/README.md | 5 +++--
dev/release/maven/dependencies.txt | 4 +++-
gradle/libs.versions.toml | 7 +++++++
iceberg/iceberg-rest-server/build.gradle.kts | 16 ++++++++++++++++
lance/lance-rest-server/build.gradle.kts | 16 ++++++++++++++++
plugins/k8s-job-executor/build.gradle.kts | 16 ++++++++++++++++
8 files changed, 87 insertions(+), 7 deletions(-)
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"))