-
Notifications
You must be signed in to change notification settings - Fork 275
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
Include transitive protos, 'compile' works but 'protobuf' doesn't work #338
Comments
It should be transitive given that your More specifically, can you provide log output for protobuf-gradle-plugin/src/main/groovy/com/google/protobuf/gradle/ProtobufExtract.groovy Line 61 in 3fd3c64
and protobuf-gradle-plugin/src/main/groovy/com/google/protobuf/gradle/GenerateProtoTask.groovy Line 523 in 3fd3c64
webapps/shop 's build?
However, for your use case |
Can you try with 0.8.11 release and see if the issue persists? |
I am also experiencing issues with using projects with protobuf project('name'). These issues are intermittent and show up more frequently when I use parallel workers. They have persisted even with 0.8.11. For me, when the jar is created for the equivalent of I reviewed the logs for the build when it fails and I see that I added logging to output the source for the |
Description
I have 3 projects, one is a web app, called shop. two are backend services, called shop and iam. Here is the directory layout.
shop.proto uses iam.proto. webapps uses shop.proto. Here is what build.gradle looks like
services/iam/build.gradle
services/shop/build.gradle
webapps/shop/build.gradle
What I expect:
Executing :webapps:shop:generateProto should succeed.
What actually happens:
However, it reports error that it can't find iam.proto used by shop.proto.
Interestingly, if I change "protobuf" to "compile", it works. Seems "protobuf" does not transitively include dependency protos? What is the recommended way to include transitive protos? I would like to learn more about how it works so I can have better judgement on when to use "protobuf".
Thanks!
The text was updated successfully, but these errors were encountered: