From eee757347a93f75e767870c90814322b29ed5275 Mon Sep 17 00:00:00 2001 From: Blake Li Date: Wed, 22 Feb 2023 16:39:01 -0500 Subject: [PATCH] fix: Change the default scope of gax from implementation to api in auto-generated gradle files for self-service client libraries. (#1374) --- rules_java_gapic/resources/gradle/client_grpc.gradle.tmpl | 6 +++--- .../resources/gradle/client_grpcrest.gradle.tmpl | 8 ++++---- rules_java_gapic/resources/gradle/client_rest.gradle.tmpl | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/rules_java_gapic/resources/gradle/client_grpc.gradle.tmpl b/rules_java_gapic/resources/gradle/client_grpc.gradle.tmpl index 2b12008b58..d00e92e891 100644 --- a/rules_java_gapic/resources/gradle/client_grpc.gradle.tmpl +++ b/rules_java_gapic/resources/gradle/client_grpc.gradle.tmpl @@ -6,11 +6,11 @@ compileJava.options.encoding = 'UTF-8' javadoc.options.encoding = 'UTF-8' dependencies { - implementation 'com.google.api:gax:{{version.gax}}' + api 'com.google.api:gax:{{version.gax}}' testImplementation 'com.google.api:gax:{{version.gax}}:testlib' - implementation 'com.google.api:gax-grpc:{{version.gax_grpc}}' + api 'com.google.api:gax-grpc:{{version.gax_grpc}}' testImplementation 'com.google.api:gax-grpc:{{version.gax_grpc}}:testlib' - implementation 'io.grpc:grpc-protobuf:{{version.io_grpc}}' + api 'io.grpc:grpc-protobuf:{{version.io_grpc}}' testImplementation 'io.grpc:grpc-stub:{{version.io_grpc}}' testImplementation 'io.grpc:grpc-netty-shaded:{{version.io_grpc}}' testImplementation '{{maven.junit_junit}}' diff --git a/rules_java_gapic/resources/gradle/client_grpcrest.gradle.tmpl b/rules_java_gapic/resources/gradle/client_grpcrest.gradle.tmpl index edd95846c3..6145198a0a 100644 --- a/rules_java_gapic/resources/gradle/client_grpcrest.gradle.tmpl +++ b/rules_java_gapic/resources/gradle/client_grpcrest.gradle.tmpl @@ -6,13 +6,13 @@ compileJava.options.encoding = 'UTF-8' javadoc.options.encoding = 'UTF-8' dependencies { - implementation 'com.google.api:gax:{{version.gax}}' + api 'com.google.api:gax:{{version.gax}}' testImplementation 'com.google.api:gax:{{version.gax}}:testlib' - implementation 'com.google.api:gax-grpc:{{version.gax_grpc}}' + api 'com.google.api:gax-grpc:{{version.gax_grpc}}' testImplementation 'com.google.api:gax-grpc:{{version.gax_grpc}}:testlib' - implementation 'com.google.api:gax-httpjson:{{version.gax_httpjson}}' + api 'com.google.api:gax-httpjson:{{version.gax_httpjson}}' testImplementation 'com.google.api:gax-httpjson:{{version.gax_httpjson}}:testlib' - implementation 'io.grpc:grpc-protobuf:{{version.io_grpc}}' + api 'io.grpc:grpc-protobuf:{{version.io_grpc}}' testImplementation 'io.grpc:grpc-stub:{{version.io_grpc}}' testImplementation 'io.grpc:grpc-netty-shaded:{{version.io_grpc}}' testImplementation '{{maven.junit_junit}}' diff --git a/rules_java_gapic/resources/gradle/client_rest.gradle.tmpl b/rules_java_gapic/resources/gradle/client_rest.gradle.tmpl index aeb2e68d36..74c5020a9d 100644 --- a/rules_java_gapic/resources/gradle/client_rest.gradle.tmpl +++ b/rules_java_gapic/resources/gradle/client_rest.gradle.tmpl @@ -6,9 +6,9 @@ compileJava.options.encoding = 'UTF-8' javadoc.options.encoding = 'UTF-8' dependencies { - implementation 'com.google.api:gax:{{version.gax}}' + api 'com.google.api:gax:{{version.gax}}' testImplementation 'com.google.api:gax:{{version.gax}}:testlib' - implementation 'com.google.api:gax-httpjson:{{version.gax_httpjson}}' + api 'com.google.api:gax-httpjson:{{version.gax_httpjson}}' testImplementation 'com.google.api:gax-httpjson:{{version.gax_httpjson}}:testlib' testImplementation '{{maven.junit_junit}}'