-
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
How to compile .proto files to project folder? #11711
Comments
|
then how do i do the compilation to the folder i want? i have spent hours trying to figure it out but nothing works. |
You can use a separate |
The generateProtoTasks plugin uses the default outputSubDir of build/generated/source/proto/main under which it will create a "java" and "grpc" subdirs for the generated sources for the protos and the service respectively. So in your source sets you need to also change the paths for Java (for IDEs to pick up) from
to
Refer (example). |
|
Seems like this is resolved. If not, comment, and it can be reopened. |
I want to compile just the files into the root of the project, but I'm having trouble. I tried to make this code, but it gives an error.
My proto files are above the Java project in the hierarchy, because the Java project is one of the projects in the monorepository.
The text was updated successfully, but these errors were encountered: