Skip to content

Commit eee7573

Browse files
authored
fix: Change the default scope of gax from implementation to api in auto-generated gradle files for self-service client libraries. (#1374)
1 parent ecb3fdf commit eee7573

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

rules_java_gapic/resources/gradle/client_grpc.gradle.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ compileJava.options.encoding = 'UTF-8'
66
javadoc.options.encoding = 'UTF-8'
77

88
dependencies {
9-
implementation 'com.google.api:gax:{{version.gax}}'
9+
api 'com.google.api:gax:{{version.gax}}'
1010
testImplementation 'com.google.api:gax:{{version.gax}}:testlib'
11-
implementation 'com.google.api:gax-grpc:{{version.gax_grpc}}'
11+
api 'com.google.api:gax-grpc:{{version.gax_grpc}}'
1212
testImplementation 'com.google.api:gax-grpc:{{version.gax_grpc}}:testlib'
13-
implementation 'io.grpc:grpc-protobuf:{{version.io_grpc}}'
13+
api 'io.grpc:grpc-protobuf:{{version.io_grpc}}'
1414
testImplementation 'io.grpc:grpc-stub:{{version.io_grpc}}'
1515
testImplementation 'io.grpc:grpc-netty-shaded:{{version.io_grpc}}'
1616
testImplementation '{{maven.junit_junit}}'

rules_java_gapic/resources/gradle/client_grpcrest.gradle.tmpl

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ compileJava.options.encoding = 'UTF-8'
66
javadoc.options.encoding = 'UTF-8'
77

88
dependencies {
9-
implementation 'com.google.api:gax:{{version.gax}}'
9+
api 'com.google.api:gax:{{version.gax}}'
1010
testImplementation 'com.google.api:gax:{{version.gax}}:testlib'
11-
implementation 'com.google.api:gax-grpc:{{version.gax_grpc}}'
11+
api 'com.google.api:gax-grpc:{{version.gax_grpc}}'
1212
testImplementation 'com.google.api:gax-grpc:{{version.gax_grpc}}:testlib'
13-
implementation 'com.google.api:gax-httpjson:{{version.gax_httpjson}}'
13+
api 'com.google.api:gax-httpjson:{{version.gax_httpjson}}'
1414
testImplementation 'com.google.api:gax-httpjson:{{version.gax_httpjson}}:testlib'
15-
implementation 'io.grpc:grpc-protobuf:{{version.io_grpc}}'
15+
api 'io.grpc:grpc-protobuf:{{version.io_grpc}}'
1616
testImplementation 'io.grpc:grpc-stub:{{version.io_grpc}}'
1717
testImplementation 'io.grpc:grpc-netty-shaded:{{version.io_grpc}}'
1818
testImplementation '{{maven.junit_junit}}'

rules_java_gapic/resources/gradle/client_rest.gradle.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ compileJava.options.encoding = 'UTF-8'
66
javadoc.options.encoding = 'UTF-8'
77

88
dependencies {
9-
implementation 'com.google.api:gax:{{version.gax}}'
9+
api 'com.google.api:gax:{{version.gax}}'
1010
testImplementation 'com.google.api:gax:{{version.gax}}:testlib'
11-
implementation 'com.google.api:gax-httpjson:{{version.gax_httpjson}}'
11+
api 'com.google.api:gax-httpjson:{{version.gax_httpjson}}'
1212
testImplementation 'com.google.api:gax-httpjson:{{version.gax_httpjson}}:testlib'
1313
testImplementation '{{maven.junit_junit}}'
1414

0 commit comments

Comments
 (0)