This is an automated email from the ASF dual-hosted git repository.
yuqi4733 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 a48a7f2f0e [#10710] improvement(catalog-hive): Exclude unused
jasper-compiler/runtime from hive-metastore2-libs (#10711)
a48a7f2f0e is described below
commit a48a7f2f0e2922fbd7182f1fdd2b423ba8f9bd92
Author: geyanggang <[email protected]>
AuthorDate: Fri Apr 10 10:32:07 2026 +0800
[#10710] improvement(catalog-hive): Exclude unused jasper-compiler/runtime
from hive-metastore2-libs (#10711)
### What changes were proposed in this pull request?
Added `exclude(group = "tomcat", module = "jasper-compiler")` and
`exclude(group = "tomcat", module = "jasper-runtime")` to the
`hive2.metastore` dependency in `build.gradle.kts`.
### Why are the changes needed?
These Tomcat 5.5 JSP engine JARs are unused transitive dependencies from
Hive 2.3.x. Removing them reduces the dependency footprint and aligns
with `hive-metastore3-libs` which already excludes them.
Fix: #10710
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Verified via `./gradlew :catalogs:hive-metastore2-libs:dependencies
--configuration runtimeClasspath | grep jasper `— confirms jasper JARs
are no longer resolved.
---
catalogs/hive-metastore2-libs/build.gradle.kts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/catalogs/hive-metastore2-libs/build.gradle.kts
b/catalogs/hive-metastore2-libs/build.gradle.kts
index 17b5e16604..c16395e77d 100644
--- a/catalogs/hive-metastore2-libs/build.gradle.kts
+++ b/catalogs/hive-metastore2-libs/build.gradle.kts
@@ -78,6 +78,8 @@ dependencies {
exclude(group = "org.eclipse.jetty.orbit", module = "javax.servlet")
exclude(group = "org.openjdk.jol")
exclude(group = "org.slf4j")
+ exclude(group = "tomcat", module = "jasper-compiler")
+ exclude(group = "tomcat", module = "jasper-runtime")
}
}