Skip to content

Commit 5f8481b

Browse files
Exclude protobuf-java as transitive dependency of grpc-protobuf, since we explicitly pull in a specific version on the next line anyway. This will allow for more clarity on what version will be used and avoid conflicts highlighted by tools like enforcer: org.apache.maven.enforcer.rules.dependency.DependencyConvergence
1 parent b56fa95 commit 5f8481b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ sourceSets { main {
9696
}}
9797

9898
dependencies {
99-
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
99+
implementation("io.grpc:grpc-protobuf:${grpcVersion}") {
100+
exclude group: 'com.google.protobuf', module: 'protobuf-java'
101+
}
100102
implementation "com.google.protobuf:protobuf-java:${protocVersion}"
101103
implementation "io.grpc:grpc-stub:${grpcVersion}"
102104
runtimeOnly "io.grpc:grpc-netty-shaded:${grpcVersion}"

0 commit comments

Comments
 (0)