Best way to include and reference standard google proto files

28 views
Skip to first unread message

Matt Mitchell

unread,
Oct 31, 2017, 1:09:09 PM10/31/17
to grpc.io
We're using Java gRPC and make use of some of the "standard library" protobuf messages, like google.protobuf.Empty and google.rpc.Status - currently, these are copied into our project under the proto directory, along side our application proto files. Is there a way to reference the google proto files in our project from an external dependency instead?

Note: the build environment is Gradle, using the com.google.protobuf Gradle plugin.

Thanks!
- Matt

Carl Mastrangelo

unread,
Oct 31, 2017, 1:33:39 PM10/31/17
to grpc.io
I believe all the Well Known Types like empty are included by the default Maven jar.   google.rpc.Status comes from the googleapis-common-protos.
Reply all
Reply to author
Forward
0 new messages