Repository navigation
Generate Stub files in Quarkus/Java from proto files #370
|
Hi I need a little help with the proto files to generate the stubs in Java. We are using Quarkus. If I use a hello world example proto files my Maven build generates the grpc stubs without issues. If I process one or more of the tekton-results proto files, the stub generation fails. Can you describe how I can generate the Grpc Stubs for Java? Which files to use? Kind regards Manu |
Answered by
manuelwallrapp
Feb 27, 2023
Replies: 2 comments 3 replies
|
Ok I found out, needed to also copy the files: from here: https://github.com/googleapis/googleapis/tree/master/google/api to the local proto directory in the corresponding subdirectories: proto/google/api After then I could generate the GPRC Stubs with Quarkus/Java. |
3 replies
Answer selected by
manuelwallrapp
|
Closing this discussion as "answered" ✔️ |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok I found out, needed to also copy the files:
google/api/field_behavior.proto
google/api/resource.proto
from here: https://github.com/googleapis/googleapis/tree/master/google/api
to the local proto directory in the corresponding subdirectories: proto/google/api
After then I could generate the GPRC Stubs with Quarkus/Java.