Skip to content

Commit b0d8ad6

Browse files
Use the public maven central relase of com.google.api.grpc:proto-google-common-protos
This fixes an issue of duplicate and possibly incompatible classes for com/google/api and com/google/rpc proto generated classes. If a project includes both api and proto-google-common-protos dependencies, there will be duplicate classes on the class path. This is because: - these classes are vendored in this repo but not declared in the pom - the version of proto-google-common-protos used is not a public release in maven central Similar to the issue in #171 that #237 will fix. Signed-off-by: Preston Bennes <preston.bennes@snowflake.com>
1 parent e5b9700 commit b0d8ad6

File tree

6 files changed

+7
-505
lines changed

6 files changed

+7
-505
lines changed

api/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
<version>${grpc.version}</version>
2828
</dependency>
2929

30+
<dependency>
31+
<groupId>com.google.api.grpc</groupId>
32+
<artifactId>proto-google-common-protos</artifactId>
33+
<version>${google-common-protos.version}</version>
34+
</dependency>
35+
3036
<dependency>
3137
<groupId>com.google.protobuf</groupId>
3238
<artifactId>protobuf-java</artifactId>

api/src/main/proto/google/api/annotations.proto

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)