Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#4530] improvement(kafka-catalog): reduce kafka catalog libs size from 91MB to 17MB (#4532)

mchadesff9405c52d99
diff --git a/catalogs/catalog-kafka/build.gradle.kts b/catalogs/catalog-kafka/build.gradle.kts
index 5fd27a0eb4..a2493fa77d 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")
}