This is an automated email from the ASF dual-hosted git repository.
jerryshao 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 ccb0dedce2 [#11345] improvement(deps): Exclude unused legacy netty
dependency from hive-metastore2-libs (#11346)
ccb0dedce2 is described below
commit ccb0dedce2a04af46af54184d1b543a50d53feac
Author: geyanggang <[email protected]>
AuthorDate: Thu Jun 4 14:00:42 2026 +0800
[#11345] improvement(deps): Exclude unused legacy netty dependency from
hive-metastore2-libs (#11346)
### What changes were proposed in this pull request?
Exclude transitive i`o.netty:netty:3.10.6.Final` from
`hadoop-mapreduce-client-core` in `build.gradle.kts`.
### Why are the changes needed?
The legacy `netty-3.x `is an unused transitive dependency brought in by
Hadoop. It is not required by Hive Metastore or Gravitino runtime and
should be excluded to keep the dependency tree clean.
Fix: #11345
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
- Verified `io.netty:netty:3.10.6.Final` no longer appears in
`:catalogs:hive-metastore2-libs:dependencies`
- `./gradlew :catalogs:hive-metastore2-libs:build` passes successfully
---
catalogs/hive-metastore2-libs/build.gradle.kts | 1 +
1 file changed, 1 insertion(+)
diff --git a/catalogs/hive-metastore2-libs/build.gradle.kts
b/catalogs/hive-metastore2-libs/build.gradle.kts
index a2ede14a5e..d2a01d348f 100644
--- a/catalogs/hive-metastore2-libs/build.gradle.kts
+++ b/catalogs/hive-metastore2-libs/build.gradle.kts
@@ -62,6 +62,7 @@ dependencies {
exclude(group = "com.google.code.findbugs")
exclude(group = "com.google.guava")
exclude(group = "com.sun.jersey")
+ exclude(group = "io.netty", module = "netty")
exclude(group = "log4j")
exclude(group = "org.apache.avro")
exclude(group = "org.apache.logging.log4j")