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 99563b84ad [#10578]improvement(catalogs): Exclude unused transitive
jets3t/java-xmlbuilder from hadoop-common (#10579)
99563b84ad is described below
commit 99563b84ad1792e6473438c7aec0828f35771b21
Author: geyanggang <[email protected]>
AuthorDate: Thu Apr 2 10:37:24 2026 +0800
[#10578]improvement(catalogs): Exclude unused transitive
jets3t/java-xmlbuilder from hadoop-common (#10579)
### What changes were proposed in this pull request?
Added `exclude(group = "net.java.dev.jets3t")` to the hadoop-common
dependency block in
`catalogs/catalog-lakehouse-paimon/build.gradle.kts`,`catalogs/hive-metastore2-libs/build.gradle.kts`,`catalogs/hive-metastore3-libs/build.gradle.kts`
### Why are the changes needed?
`java-xmlbuilder:0.4` is pulled in transitively via
`hadoop-common:2.10.2 `→ `jets3t:0.9.0`. jets3t is an obsolete Amazon S3
client library that Gravitino does not use at runtime. Excluding it
removes both jets3t and java-xmlbuilder from the dependency tree.
Fix: #10578
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
1. Verified compileJava passes for all three affected modules.
2. Verified unit tests pass for catalog-lakehouse-paimon.
3. Confirmed java-xmlbuilder and jets3t no longer appear in the
runtimeClasspath dependency tree of all three modules.
---
catalogs/catalog-lakehouse-paimon/build.gradle.kts | 1 +
catalogs/hive-metastore2-libs/build.gradle.kts | 1 +
catalogs/hive-metastore3-libs/build.gradle.kts | 1 +
3 files changed, 3 insertions(+)
diff --git a/catalogs/catalog-lakehouse-paimon/build.gradle.kts
b/catalogs/catalog-lakehouse-paimon/build.gradle.kts
index 83903956b2..903814bd1c 100644
--- a/catalogs/catalog-lakehouse-paimon/build.gradle.kts
+++ b/catalogs/catalog-lakehouse-paimon/build.gradle.kts
@@ -108,6 +108,7 @@ dependencies {
exclude("com.sun.jersey")
exclude("javax.servlet")
exclude("org.apache.avro")
+ exclude("net.java.dev.jets3t")
exclude("org.apache.curator")
exclude("org.apache.zookeeper")
exclude("org.mortbay.jetty")
diff --git a/catalogs/hive-metastore2-libs/build.gradle.kts
b/catalogs/hive-metastore2-libs/build.gradle.kts
index 3f55832464..e90a0ec92a 100644
--- a/catalogs/hive-metastore2-libs/build.gradle.kts
+++ b/catalogs/hive-metastore2-libs/build.gradle.kts
@@ -34,6 +34,7 @@ dependencies {
exclude(group = "com.google.code.findbugs")
exclude(group = "com.google.guava")
exclude(group = "log4j")
+ exclude(group = "net.java.dev.jets3t")
exclude(group = "org.apache.avro")
exclude(group = "org.apache.logging.log4j")
exclude(group = "org.eclipse.jetty.aggregate", module = "jetty-all")
diff --git a/catalogs/hive-metastore3-libs/build.gradle.kts
b/catalogs/hive-metastore3-libs/build.gradle.kts
index 5fbae4cb36..9ad2118e5e 100644
--- a/catalogs/hive-metastore3-libs/build.gradle.kts
+++ b/catalogs/hive-metastore3-libs/build.gradle.kts
@@ -34,6 +34,7 @@ dependencies {
exclude(group = "com.google.code.findbugs")
exclude(group = "com.google.guava")
exclude(group = "log4j")
+ exclude(group = "net.java.dev.jets3t")
exclude(group = "org.apache.avro")
exclude(group = "org.apache.logging.log4j")
exclude(group = "org.eclipse.jetty")