Replies: 2 comments
-
/cc @alesj (grpc), @cescoffier (grpc) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Did you try current |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context:
I'm working on a multi-module Gradle project that uses gRPC, following the guide provided at https://quarkus.io/guides/grpc-getting-started. The project structure consists of two modules:
module-commons
andmodule-app
, each with its ownproto
directory containingcommons.proto
andapp.proto
respectively. Here's the structure:This is the error message I'm encountering when running the
quarkusBuild
task on themodule-app
project:I'm encountering difficulties importing
commons.proto
into theapp.proto
file. I've attempted using thequarkus.generate-code.grpc.scan-for-imports=all
setting, but it doesn't seem to address this issue. Additionally, I couldn't find a way to specify project dependencies for thequarkus.generate-code.grpc.scan-for-proto
setting.When I run
gradle dependencies
, I see the project listed asproject ':module-commons'
. Using the typical<groupId>:<artifactId>
format for local project dependencies likecom.example:module-commons
doesn't work in this context.For external dependencies, such as
proto-google-common-protos
, the setting works as expected. However, the challenge lies in importing multi-module proto files.The only workaround I can think of is to place all proto files in a single directory, but this would result in an unorganized structure, which is not ideal. How can I properly import
commons.proto
fromapp.proto
within this multi-module setup?Note
The Intellij plugin Protobuf successfully imports and lints the proto files. Problem seems to reside during the Quarkus building process.
Beta Was this translation helpful? Give feedback.
All reactions