Skip to content

Commit

Permalink
change previous compile keywords to api in gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Yingjian Wu committed Jan 9, 2024
1 parent 3f55f9f commit a4f085f
Show file tree
Hide file tree
Showing 21 changed files with 85 additions and 85 deletions.
2 changes: 1 addition & 1 deletion metacat-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies {
* Compile Dependencies
*******************************/

implementation(project(":metacat-main"))
api(project(":metacat-main"))

/*******************************
* Provided Dependencies
Expand Down
14 changes: 7 additions & 7 deletions metacat-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions metacat-common-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")


/*******************************
Expand Down
2 changes: 1 addition & 1 deletion metacat-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {
* Implementation Dependencies
*******************************/

implementation("com.google.guava:guava")
api("com.google.guava:guava")

/*******************************
* Provided Dependencies
Expand Down
6 changes: 3 additions & 3 deletions metacat-connector-cassandra/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions metacat-connector-druid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions metacat-connector-hive/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
*******************************/
Expand Down
2 changes: 1 addition & 1 deletion metacat-connector-jdbc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies {

api(project(":metacat-common-server"))

implementation("com.google.inject:guice")
api("com.google.inject:guice")

/*******************************
* Provided Dependencies
Expand Down
4 changes: 2 additions & 2 deletions metacat-connector-mysql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions metacat-connector-pig/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions metacat-connector-polaris/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions metacat-connector-postgresql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions metacat-connector-redshift/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 9 additions & 9 deletions metacat-connector-s3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions metacat-connector-snowflake/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 11 additions & 11 deletions metacat-main/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'

/*******************************
Expand Down
8 changes: 4 additions & 4 deletions metacat-metadata-mysql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
*******************************/
Expand Down
8 changes: 4 additions & 4 deletions metacat-metadata/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions metacat-testdata-provider/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion metacat-thrift/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies {
* Implementation Dependencies
*******************************/

implementation("com.google.guava:guava")
api("com.google.guava:guava")

/*******************************
* Provided Dependencies
Expand Down
8 changes: 4 additions & 4 deletions metacat-war/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'

/*******************************
Expand Down

0 comments on commit a4f085f

Please sign in to comment.