This is an automated email from the ASF dual-hosted git repository.

jshao 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 7e669408bf [#9295] fix(core): Exclude different version jackson jars 
from the Lance dependency (#9313)
7e669408bf is described below

commit 7e669408bf129d58f13e5157aecabe85ce1cfc85
Author: roryqi <[email protected]>
AuthorDate: Mon Dec 1 20:31:41 2025 +0800

    [#9295] fix(core): Exclude different version jackson jars from the Lance 
dependency (#9313)
    
    ### What changes were proposed in this pull request?
    
    Exclude different version jackson jars from the Lance dependency
    
    ### Why are the changes needed?
    
    Fix: #9295
    
    ### Does this PR introduce _any_ user-facing change?
    
    No need.
    
    ### How was this patch tested?
    
    compile and check the jars in the distribution.
    Before this PR
    we have 2.15 and 2.17 jackson jars
    After this PR
    we only 2.15 jackson jars
---
 core/build.gradle.kts     | 2 ++
 gradle/libs.versions.toml | 1 +
 2 files changed, 3 insertions(+)

diff --git a/core/build.gradle.kts b/core/build.gradle.kts
index 7e0867dc71..fb6a0c8968 100644
--- a/core/build.gradle.kts
+++ b/core/build.gradle.kts
@@ -43,6 +43,7 @@ dependencies {
   implementation(libs.concurrent.trees)
   implementation(libs.guava)
   implementation(libs.h2db)
+  implementation(libs.jackson.jaxrs.json.provider) // This is required by lance
   implementation(libs.lance) {
     exclude(group = "com.fasterxml.jackson.core", module = "*") // provided by 
gravitino
     exclude(group = "com.fasterxml.jackson.datatype", module = "*") // 
provided by gravitino
@@ -50,6 +51,7 @@ dependencies {
     exclude(group = "com.google.guava", module = "guava") // provided by 
gravitino
     exclude(group = "org.apache.commons", module = "commons-lang3") // 
provided by gravitino
     exclude(group = "org.junit.jupiter", module = "*") // provided by test 
scope
+    exclude(group = "com.fasterxml.jackson.jaxrs", module = 
"jackson-jaxrs-json-provider") // using gravitino's version
   }
   implementation(libs.mybatis)
 
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 86e25da380..f0fd23e4e5 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -147,6 +147,7 @@ jackson-annotations = { group = 
"com.fasterxml.jackson.core", name = "jackson-an
 jackson-datatype-jdk8 = { group = "com.fasterxml.jackson.datatype", name = 
"jackson-datatype-jdk8", version.ref = "jackson" }
 jackson-datatype-jsr310 = { group = "com.fasterxml.jackson.datatype", name = 
"jackson-datatype-jsr310", version.ref = "jackson" }
 jackson-dataformat-yaml = { group = "com.fasterxml.jackson.dataformat", name = 
"jackson-dataformat-yaml", version.ref = "jackson" }
+jackson-jaxrs-json-provider = { group = "com.fasterxml.jackson.jaxrs", name = 
"jackson-jaxrs-json-provider", version.ref = "jackson" }
 guava = { group = "com.google.guava", name = "guava", version.ref = "guava" }
 kerby-core = { group = "org.apache.kerby", name = "kerb-core", version.ref = 
"kerby"}
 kerby-simplekdc = { group = "org.apache.kerby", name = "kerb-simplekdc", 
version.ref = "kerby"}

Reply via email to