You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, you'll likely need to stay on 3.x version of protobuf-java (remote plugin 25.x). See #116 (comment) and grpc/grpc-java#11015 (comment) - neither the CEL interpreter or grpc-java have updated to the latest 4.x version of protobuf-java due to breaking changes.
To do so, update your buf.gen.yaml to specify remote: buf.build/protocolbuffers/java:25.3 instead of remote: buf.build/protocolbuffers/java.
Additionally, the protovalidate module specifies java_package so shouldn't be used with managed mode. The generated code is shipped with the build.buf:protovalidate artifact in the build.buf.validate package: https://github.com/bufbuild/protovalidate-java/tree/main/src/main/java/build/buf/validate. To disable managed mode, try adding this configuration under managed in your buf.gen.yaml file:
Description
Hi. Trying to add compiled dependencies to my java project and got dependencies' issues
Steps to Reproduce
build.gradle.kts:
buf.gen.yaml:
buf.yaml:
Expected Behavior
I'd like to generate java classes using
buf generate
command, add dependencies and it shoud workActual Behavior
Broken dependencies
Screenshots/Logs
Environment
Possible Solution
Additional Context
Maybe I missed something?
Thanks
The text was updated successfully, but these errors were encountered: