-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
examples: use the official error_details.proto #3151
Conversation
examples/build.gradle
Outdated
@@ -25,6 +25,7 @@ repositories { | |||
def grpcVersion = '1.5.0-SNAPSHOT' // CURRENT_GRPC_VERSION | |||
|
|||
dependencies { | |||
compile "com.google.api.grpc:grpc-google-common-protos:0.1.12" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should use proto-google-common-protos, not grpc-google-common-protos. See #2961 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I filed #3152 to follow-up on the build environment for proto-google-common-protos, which is already a dependency in grpc-protobuf.
Maven build is pretty broken. See the Travis logs. |
That's interesting, the 1st commit using |
FYI: this will conflict with #3150 |
Is there any particular reason we use v0.1.9 in grpc-protobuf? Can we bump to v0.1.12 globally? |
|
Let's add maven-enforcer-plugin to the pom.xml to detect problems like this in the future. It's important for our users to do the same: <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>enforce</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireUpperBoundDeps/>
</rules>
</configuration>
</execution>
</executions>
</plugin> |
Actually, I'm just going to do the maven enforcer part in #3158. |
The
error_details.proto
file inexamples/src/main/proto/
was not originated from grpc-java.It was officially opensourced at https://github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto