World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#4520] Imporvement(jdbc-catalogs): Shrink JDBC catalog binary package size to about 3MB. (#4521)
Qi Yu0af3353fb289
diff --git a/catalogs/catalog-jdbc-doris/build.gradle.kts b/catalogs/catalog-jdbc-doris/build.gradle.ktsindex 19f232bc66..b7cf6dfc87 100644--- a/catalogs/catalog-jdbc-doris/build.gradle.kts+++ b/catalogs/catalog-jdbc-doris/build.gradle.kts@@ -25,17 +25,23 @@ plugins {}dependencies {- implementation(project(":api"))- implementation(project(":catalogs:catalog-jdbc-common"))- implementation(project(":common"))- implementation(project(":core"))+ implementation(project(":api")) {+ exclude(group = "*")+ }+ implementation(project(":catalogs:catalog-jdbc-common")) {+ exclude(group = "*")+ }+ implementation(project(":common")) {+ exclude(group = "*")+ }+ implementation(project(":core")) {+ exclude(group = "*")+ }implementation(libs.bundles.log4j)implementation(libs.commons.collections4)implementation(libs.commons.lang3)implementation(libs.guava)- implementation(libs.jsqlparser)- implementation(libs.slf4j.api)testImplementation(project(":catalogs:catalog-jdbc-common", "testArtifacts"))testImplementation(project(":clients:client-java"))@@ -43,8 +49,6 @@ dependencies {testImplementation(project(":server"))testImplementation(project(":server-common"))- testImplementation(libs.commons.lang3)- testImplementation(libs.guava)testImplementation(libs.junit.jupiter.api)testImplementation(libs.junit.jupiter.params)testImplementation(libs.mysql.driver)@@ -61,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/jdbc-doris/libs")}diff --git a/catalogs/catalog-jdbc-mysql/build.gradle.kts b/catalogs/catalog-jdbc-mysql/build.gradle.ktsindex e6ba106cdb..9ad6c739ab 100644--- a/catalogs/catalog-jdbc-mysql/build.gradle.kts+++ b/catalogs/catalog-jdbc-mysql/build.gradle.kts@@ -25,18 +25,26 @@ plugins {}dependencies {- implementation(project(":api"))- implementation(project(":catalogs:catalog-common"))- implementation(project(":catalogs:catalog-jdbc-common"))- implementation(project(":common"))- implementation(project(":core"))+ implementation(project(":api")) {+ exclude(group = "*")+ }+ implementation(project(":catalogs:catalog-common")) {+ exclude(group = "*")+ }+ implementation(project(":catalogs:catalog-jdbc-common")) {+ exclude(group = "*")+ }+ implementation(project(":common")) {+ exclude(group = "*")+ }+ implementation(project(":core")) {+ exclude(group = "*")+ }implementation(libs.bundles.log4j)implementation(libs.commons.collections4)implementation(libs.commons.lang3)implementation(libs.guava)- implementation(libs.jsqlparser)- implementation(libs.slf4j.api)testImplementation(project(":catalogs:catalog-jdbc-common", "testArtifacts"))testImplementation(project(":clients:client-java"))@@ -44,11 +52,9 @@ dependencies {testImplementation(project(":server"))testImplementation(project(":server-common"))- testImplementation(libs.commons.lang3)- testImplementation(libs.guava)- testImplementation(libs.mysql.driver)testImplementation(libs.junit.jupiter.api)testImplementation(libs.junit.jupiter.params)+ testImplementation(libs.mysql.driver)testImplementation(libs.testcontainers)testImplementation(libs.testcontainers.mysql)@@ -63,7 +69,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/jdbc-mysql/libs")}diff --git a/catalogs/catalog-jdbc-postgresql/build.gradle.kts b/catalogs/catalog-jdbc-postgresql/build.gradle.ktsindex 8a03e6c18b..70ffcfba51 100644--- a/catalogs/catalog-jdbc-postgresql/build.gradle.kts+++ b/catalogs/catalog-jdbc-postgresql/build.gradle.kts@@ -26,16 +26,23 @@ plugins {dependencies {- implementation(project(":api"))- implementation(project(":catalogs:catalog-jdbc-common"))- implementation(project(":common"))- implementation(project(":core"))+ implementation(project(":api")) {+ exclude(group = "*")+ }+ implementation(project(":catalogs:catalog-jdbc-common")) {+ exclude(group = "*")+ }+ implementation(project(":common")) {+ exclude(group = "*")+ }+ implementation(project(":core")) {+ exclude(group = "*")+ }implementation(libs.bundles.log4j)implementation(libs.commons.collections4)implementation(libs.commons.lang3)implementation(libs.guava)- implementation(libs.jsqlparser)testImplementation(project(":catalogs:catalog-jdbc-common", "testArtifacts"))testImplementation(project(":clients:client-java"))@@ -43,14 +50,10 @@ dependencies {testImplementation(project(":server"))testImplementation(project(":server-common"))- testImplementation(libs.bundles.log4j)- testImplementation(libs.commons.lang3)- testImplementation(libs.guava)testImplementation(libs.junit.jupiter.api)testImplementation(libs.junit.jupiter.params)testImplementation(libs.mysql.driver)testImplementation(libs.postgresql.driver)- testImplementation(libs.slf4j.api)testImplementation(libs.testcontainers)testImplementation(libs.testcontainers.mysql)testImplementation(libs.testcontainers.postgresql)@@ -66,7 +69,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/jdbc-postgresql/libs")}