Skip to content

Commit af6465c

Browse files
Change the protobuf-java dependency scope to be api, so that it is included transitively in compile scope for our maven consumers. This makes the client library easier to use and avoids the end users having to include the protobuf-java dependency themselves.
1 parent 5f8481b commit af6465c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ dependencies {
9999
implementation("io.grpc:grpc-protobuf:${grpcVersion}") {
100100
exclude group: 'com.google.protobuf', module: 'protobuf-java'
101101
}
102-
implementation "com.google.protobuf:protobuf-java:${protocVersion}"
102+
api "com.google.protobuf:protobuf-java:${protocVersion}"
103103
implementation "io.grpc:grpc-stub:${grpcVersion}"
104104
runtimeOnly "io.grpc:grpc-netty-shaded:${grpcVersion}"
105105
compileOnly "org.apache.tomcat:annotations-api:6.0.53"

0 commit comments

Comments
 (0)