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 ff9405c52 [#4530] improvement(kafka-catalog): reduce kafka catalog 
libs size from 91MB to 17MB (#4532)
ff9405c52 is described below

commit ff9405c52d997baca37de096669d2799dc1474bd
Author: mchades <[email protected]>
AuthorDate: Tue Aug 27 10:25:00 2024 +0800

    [#4530] improvement(kafka-catalog): reduce kafka catalog libs size from 
91MB to 17MB (#4532)
    
    ### What changes were proposed in this pull request?
    
    remove some unnecessary dependencies
    
    ### Why are the changes needed?
    
    Fix: #4530
    
    ### Does this PR introduce _any_ user-facing change?
    
    no
    
    ### How was this patch tested?
    
    CI passed
---
 catalogs/catalog-kafka/build.gradle.kts | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/catalogs/catalog-kafka/build.gradle.kts 
b/catalogs/catalog-kafka/build.gradle.kts
index 5fd27a0eb..a2493fa77 100644
--- a/catalogs/catalog-kafka/build.gradle.kts
+++ b/catalogs/catalog-kafka/build.gradle.kts
@@ -25,9 +25,15 @@ plugins {
 }
 
 dependencies {
-  implementation(project(":api"))
-  implementation(project(":core"))
-  implementation(project(":common"))
+  implementation(project(":api")) {
+    exclude("*")
+  }
+  implementation(project(":core")) {
+    exclude("*")
+  }
+  implementation(project(":common")) {
+    exclude("*")
+  }
 
   testImplementation(project(":clients:client-java"))
   testImplementation(project(":integration-test-common", "testArtifacts"))
@@ -59,7 +65,11 @@ tasks {
 
   val copyCatalogLibs by registering(Copy::class) {
     dependsOn(jar, runtimeJars)
-    from("build/libs")
+    from("build/libs") {
+      exclude("guava-*.jar")
+      exclude("log4j-*.jar")
+      exclude("slf4j-*.jar")
+    }
     into("$rootDir/distribution/package/catalogs/kafka/libs")
   }
 

Reply via email to