From a4cd4a5856358f23c52eec86dcb27572a580fd07 Mon Sep 17 00:00:00 2001 From: stevie9868 <151791653+stevie9868@users.noreply.github.com> Date: Tue, 9 Jan 2024 15:21:39 -0800 Subject: [PATCH] change previous compile keywords to api in gradle (#567) Co-authored-by: Yingjian Wu --- metacat-app/build.gradle | 2 +- metacat-client/build.gradle | 14 +++++++------- metacat-common-server/build.gradle | 6 +++--- metacat-common/build.gradle | 2 +- metacat-connector-cassandra/build.gradle | 6 +++--- metacat-connector-druid/build.gradle | 8 ++++---- metacat-connector-hive/build.gradle | 14 +++++++------- metacat-connector-jdbc/build.gradle | 2 +- metacat-connector-mysql/build.gradle | 4 ++-- metacat-connector-pig/build.gradle | 12 ++++++------ metacat-connector-polaris/build.gradle | 16 ++++++++-------- metacat-connector-postgresql/build.gradle | 4 ++-- metacat-connector-redshift/build.gradle | 4 ++-- metacat-connector-s3/build.gradle | 18 +++++++++--------- metacat-connector-snowflake/build.gradle | 4 ++-- metacat-main/build.gradle | 22 +++++++++++----------- metacat-metadata-mysql/build.gradle | 8 ++++---- metacat-metadata/build.gradle | 8 ++++---- metacat-testdata-provider/build.gradle | 6 +++--- metacat-thrift/build.gradle | 2 +- metacat-war/build.gradle | 8 ++++---- 21 files changed, 85 insertions(+), 85 deletions(-) diff --git a/metacat-app/build.gradle b/metacat-app/build.gradle index c0663675e..6268ca021 100644 --- a/metacat-app/build.gradle +++ b/metacat-app/build.gradle @@ -14,7 +14,7 @@ dependencies { * Compile Dependencies *******************************/ - implementation(project(":metacat-main")) + api(project(":metacat-main")) /******************************* * Provided Dependencies diff --git a/metacat-client/build.gradle b/metacat-client/build.gradle index b891a4af1..793f22fe1 100644 --- a/metacat-client/build.gradle +++ b/metacat-client/build.gradle @@ -28,13 +28,13 @@ dependencies { * Implementation Dependencies *******************************/ - implementation("com.fasterxml.jackson.core:jackson-databind") - implementation("com.fasterxml.jackson.datatype:jackson-datatype-guava") - implementation("com.fasterxml.jackson.module:jackson-module-jaxb-annotations") - implementation("com.google.guava:guava") - implementation("io.github.openfeign:feign-jaxrs") - implementation("io.github.openfeign:feign-slf4j") - implementation("org.slf4j:slf4j-api") + api("com.fasterxml.jackson.core:jackson-databind") + api("com.fasterxml.jackson.datatype:jackson-datatype-guava") + api("com.fasterxml.jackson.module:jackson-module-jaxb-annotations") + api("com.google.guava:guava") + api("io.github.openfeign:feign-jaxrs") + api("io.github.openfeign:feign-slf4j") + api("org.slf4j:slf4j-api") /******************************* * Provided Dependencies diff --git a/metacat-common-server/build.gradle b/metacat-common-server/build.gradle index f4ef1e6a7..0a605208f 100644 --- a/metacat-common-server/build.gradle +++ b/metacat-common-server/build.gradle @@ -36,9 +36,9 @@ dependencies { /******************************* * Implementation Dependencies *******************************/ - implementation("com.google.guava:guava") - implementation("org.slf4j:slf4j-api") - implementation("org.springframework.boot:spring-boot-starter-logging") + api("com.google.guava:guava") + api("org.slf4j:slf4j-api") + api("org.springframework.boot:spring-boot-starter-logging") /******************************* diff --git a/metacat-common/build.gradle b/metacat-common/build.gradle index 8fc4053e4..2b0551d12 100644 --- a/metacat-common/build.gradle +++ b/metacat-common/build.gradle @@ -28,7 +28,7 @@ dependencies { * Implementation Dependencies *******************************/ - implementation("com.google.guava:guava") + api("com.google.guava:guava") /******************************* * Provided Dependencies diff --git a/metacat-connector-cassandra/build.gradle b/metacat-connector-cassandra/build.gradle index eaba653c4..08d606f81 100644 --- a/metacat-connector-cassandra/build.gradle +++ b/metacat-connector-cassandra/build.gradle @@ -21,10 +21,10 @@ dependencies { * Compile Dependencies *******************************/ - implementation(project(":metacat-common-server")) + api(project(":metacat-common-server")) - implementation("com.datastax.cassandra:cassandra-driver-core") - implementation("com.google.inject:guice") + api("com.datastax.cassandra:cassandra-driver-core") + api("com.google.inject:guice") /******************************* * Provided Dependencies diff --git a/metacat-connector-druid/build.gradle b/metacat-connector-druid/build.gradle index d39ff3b6f..a03ab930e 100644 --- a/metacat-connector-druid/build.gradle +++ b/metacat-connector-druid/build.gradle @@ -21,10 +21,10 @@ dependencies { * Compile Dependencies *******************************/ - implementation(project(":metacat-common-server")) - implementation("org.springframework:spring-web") - implementation("org.apache.httpcomponents:httpclient") - implementation("org.json:json") + api(project(":metacat-common-server")) + api("org.springframework:spring-web") + api("org.apache.httpcomponents:httpclient") + api("org.json:json") /******************************* * Provided Dependencies diff --git a/metacat-connector-hive/build.gradle b/metacat-connector-hive/build.gradle index 3bacbfbfc..aa6c54b8d 100644 --- a/metacat-connector-hive/build.gradle +++ b/metacat-connector-hive/build.gradle @@ -21,17 +21,17 @@ dependencies { * Compile Dependencies *******************************/ - implementation(project(":metacat-common-server")) + api(project(":metacat-common-server")) - implementation("org.apache.hive:hive-metastore") - implementation("org.apache.hive:hive-exec:${hive_version}:core@jar") - implementation("org.apache.hadoop:hadoop-core") - implementation("com.github.rholder:guava-retrying") { + api("org.apache.hive:hive-metastore") + api("org.apache.hive:hive-exec:${hive_version}:core@jar") + api("org.apache.hadoop:hadoop-core") + api("com.github.rholder:guava-retrying") { exclude module: "guava" } - implementation("commons-dbutils:commons-dbutils") - implementation("org.apache.iceberg:iceberg-spark-runtime") + api("commons-dbutils:commons-dbutils") + api("org.apache.iceberg:iceberg-spark-runtime") /******************************* * Provided Dependencies *******************************/ diff --git a/metacat-connector-jdbc/build.gradle b/metacat-connector-jdbc/build.gradle index 6b9cf372b..cd88ab275 100644 --- a/metacat-connector-jdbc/build.gradle +++ b/metacat-connector-jdbc/build.gradle @@ -23,7 +23,7 @@ dependencies { api(project(":metacat-common-server")) - implementation("com.google.inject:guice") + api("com.google.inject:guice") /******************************* * Provided Dependencies diff --git a/metacat-connector-mysql/build.gradle b/metacat-connector-mysql/build.gradle index 85ea9d337..f53c5b843 100644 --- a/metacat-connector-mysql/build.gradle +++ b/metacat-connector-mysql/build.gradle @@ -21,9 +21,9 @@ dependencies { * Compile Dependencies *******************************/ - implementation(project(":metacat-connector-jdbc")) + api(project(":metacat-connector-jdbc")) - implementation("com.google.inject:guice") + api("com.google.inject:guice") /******************************* * Provided Dependencies diff --git a/metacat-connector-pig/build.gradle b/metacat-connector-pig/build.gradle index 377f496dd..0f23a6519 100644 --- a/metacat-connector-pig/build.gradle +++ b/metacat-connector-pig/build.gradle @@ -21,13 +21,13 @@ dependencies { * Compile Dependencies *******************************/ - implementation(project(":metacat-common-server")) + api(project(":metacat-common-server")) - implementation("com.google.guava:guava") - implementation("com.google.inject:guice") - implementation("org.apache.pig:pig") - implementation("org.apache.hadoop:hadoop-core") - implementation("org.slf4j:slf4j-api") + api("com.google.guava:guava") + api("com.google.inject:guice") + api("org.apache.pig:pig") + api("org.apache.hadoop:hadoop-core") + api("org.slf4j:slf4j-api") /******************************* * Provided Dependencies diff --git a/metacat-connector-polaris/build.gradle b/metacat-connector-polaris/build.gradle index 965041d83..4e39d1d1e 100644 --- a/metacat-connector-polaris/build.gradle +++ b/metacat-connector-polaris/build.gradle @@ -32,14 +32,14 @@ dependencies { /******************************* * Compile Dependencies *******************************/ - implementation(project(":metacat-connector-hive")) - implementation(project(":metacat-connector-jdbc")) - implementation(project(":metacat-common-server")) - implementation('org.springframework.data:spring-data-jpa') - implementation('org.springframework.boot:spring-boot-starter-aop') - implementation('org.springframework.retry:spring-retry') - implementation("org.springframework:spring-aspects") - implementation("com.h2database:h2") + api(project(":metacat-connector-hive")) + api(project(":metacat-connector-jdbc")) + api(project(":metacat-common-server")) + api('org.springframework.data:spring-data-jpa') + api('org.springframework.boot:spring-boot-starter-aop') + api('org.springframework.retry:spring-retry') + api("org.springframework:spring-aspects") + api("com.h2database:h2") /******************************* * Provided Dependencies diff --git a/metacat-connector-postgresql/build.gradle b/metacat-connector-postgresql/build.gradle index 04f72bfb0..2b08b349e 100644 --- a/metacat-connector-postgresql/build.gradle +++ b/metacat-connector-postgresql/build.gradle @@ -21,9 +21,9 @@ dependencies { * Compile Dependencies *******************************/ - implementation(project(":metacat-connector-jdbc")) + api(project(":metacat-connector-jdbc")) - implementation("com.google.inject:guice") + api("com.google.inject:guice") /******************************* * Provided Dependencies diff --git a/metacat-connector-redshift/build.gradle b/metacat-connector-redshift/build.gradle index 342047f4f..ddfc199db 100644 --- a/metacat-connector-redshift/build.gradle +++ b/metacat-connector-redshift/build.gradle @@ -21,9 +21,9 @@ dependencies { * Compile Dependencies *******************************/ - implementation(project(":metacat-connector-jdbc")) + api(project(":metacat-connector-jdbc")) - implementation("com.google.inject:guice") + api("com.google.inject:guice") /******************************* * Provided Dependencies diff --git a/metacat-connector-s3/build.gradle b/metacat-connector-s3/build.gradle index 80ab204e6..f0a507d0d 100644 --- a/metacat-connector-s3/build.gradle +++ b/metacat-connector-s3/build.gradle @@ -21,16 +21,16 @@ dependencies { * Compile Dependencies *******************************/ - implementation(project(":metacat-common-server")) - implementation(project(":metacat-connector-pig")) + api(project(":metacat-common-server")) + api(project(":metacat-connector-pig")) - implementation("com.google.guava:guava") - implementation("com.google.inject:guice") - implementation("com.google.inject.extensions:guice-persist") - implementation("com.google.inject.extensions:guice-multibindings") - implementation("com.google.inject.extensions:guice-servlet") - implementation("joda-time:joda-time:2.10.10") - implementation("org.hibernate:hibernate-entitymanager") + api("com.google.guava:guava") + api("com.google.inject:guice") + api("com.google.inject.extensions:guice-persist") + api("com.google.inject.extensions:guice-multibindings") + api("com.google.inject.extensions:guice-servlet") + api("joda-time:joda-time:2.10.10") + api("org.hibernate:hibernate-entitymanager") /******************************* * Provided Dependencies diff --git a/metacat-connector-snowflake/build.gradle b/metacat-connector-snowflake/build.gradle index a8087d00a..9a6cc9fb5 100644 --- a/metacat-connector-snowflake/build.gradle +++ b/metacat-connector-snowflake/build.gradle @@ -21,9 +21,9 @@ dependencies { * Compile Dependencies *******************************/ - implementation(project(":metacat-connector-jdbc")) + api(project(":metacat-connector-jdbc")) - implementation("com.google.inject:guice") + api("com.google.inject:guice") /******************************* * Provided Dependencies diff --git a/metacat-main/build.gradle b/metacat-main/build.gradle index 1b738b399..1d6d91d5f 100644 --- a/metacat-main/build.gradle +++ b/metacat-main/build.gradle @@ -39,20 +39,20 @@ dependencies { * Implementation Dependencies *******************************/ - implementation(project(":metacat-metadata-mysql")) + api(project(":metacat-metadata-mysql")) - implementation("com.google.guava:guava") - implementation("com.github.rholder:guava-retrying") { + api("com.google.guava:guava") + api("com.github.rholder:guava-retrying") { exclude module: "guava" } - implementation("io.springfox:springfox-boot-starter") - implementation("org.springframework.boot:spring-boot-starter") - implementation("org.springframework.boot:spring-boot-starter-web") - implementation("org.springframework.boot:spring-boot-starter-actuator") - implementation("org.springframework.boot:spring-boot-starter-hateoas") - implementation("org.springframework.boot:spring-boot-starter-logging") - implementation("org.springframework.boot:spring-boot-starter-tomcat") - implementation("javax.validation:validation-api") + api("io.springfox:springfox-boot-starter") + api("org.springframework.boot:spring-boot-starter") + api("org.springframework.boot:spring-boot-starter-web") + api("org.springframework.boot:spring-boot-starter-actuator") + api("org.springframework.boot:spring-boot-starter-hateoas") + api("org.springframework.boot:spring-boot-starter-logging") + api("org.springframework.boot:spring-boot-starter-tomcat") + api("javax.validation:validation-api") implementation 'io.springfox:springfox-boot-starter' /******************************* diff --git a/metacat-metadata-mysql/build.gradle b/metacat-metadata-mysql/build.gradle index 3ca5a211c..db158f794 100644 --- a/metacat-metadata-mysql/build.gradle +++ b/metacat-metadata-mysql/build.gradle @@ -28,10 +28,10 @@ dependencies { * Implementation Dependencies *******************************/ - implementation("commons-dbutils:commons-dbutils") - implementation("com.google.guava:guava") - implementation("org.apache.tomcat:tomcat-jdbc") - implementation("org.slf4j:slf4j-api") + api("commons-dbutils:commons-dbutils") + api("com.google.guava:guava") + api("org.apache.tomcat:tomcat-jdbc") + api("org.slf4j:slf4j-api") /******************************* * Provided Dependencies *******************************/ diff --git a/metacat-metadata/build.gradle b/metacat-metadata/build.gradle index 9b226d17d..b0341581d 100644 --- a/metacat-metadata/build.gradle +++ b/metacat-metadata/build.gradle @@ -32,10 +32,10 @@ dependencies { /******************************* * Compile Dependencies *******************************/ - implementation(project(":metacat-connector-jdbc")) - implementation(project(":metacat-common-server")) - implementation('org.springframework.data:spring-data-jpa') - implementation("com.h2database:h2") + api(project(":metacat-connector-jdbc")) + api(project(":metacat-common-server")) + api('org.springframework.data:spring-data-jpa') + api("com.h2database:h2") /******************************* * Provided Dependencies diff --git a/metacat-testdata-provider/build.gradle b/metacat-testdata-provider/build.gradle index 313ebf03c..5e547a547 100644 --- a/metacat-testdata-provider/build.gradle +++ b/metacat-testdata-provider/build.gradle @@ -21,10 +21,10 @@ dependencies { * Compile Dependencies *******************************/ - implementation(project(":metacat-common")) - implementation(project(":metacat-common-server")) + api(project(":metacat-common")) + api(project(":metacat-common-server")) - implementation("org.codehaus.groovy:groovy-all") + api("org.codehaus.groovy:groovy-all") /******************************* * Provided Dependencies diff --git a/metacat-thrift/build.gradle b/metacat-thrift/build.gradle index e23dce9f5..cf76482d7 100644 --- a/metacat-thrift/build.gradle +++ b/metacat-thrift/build.gradle @@ -32,7 +32,7 @@ dependencies { * Implementation Dependencies *******************************/ - implementation("com.google.guava:guava") + api("com.google.guava:guava") /******************************* * Provided Dependencies diff --git a/metacat-war/build.gradle b/metacat-war/build.gradle index fa0662bb7..dba5242f9 100644 --- a/metacat-war/build.gradle +++ b/metacat-war/build.gradle @@ -29,10 +29,10 @@ dependencies { *******************************/ // TODO: Fix dependencies - implementation(project(":metacat-common")) - implementation(project(":metacat-common-server")) - implementation(project(":metacat-main")) - implementation(project(":metacat-metadata-mysql")) + api(project(":metacat-common")) + api(project(":metacat-common-server")) + api(project(":metacat-main")) + api(project(":metacat-metadata-mysql")) implementation 'org.springframework:spring-web' /*******************************