Skip to content
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

any plan to support java-written plugin in compile-custom goal? #62

Open
jizhilong opened this issue Jun 21, 2019 · 3 comments
Open

any plan to support java-written plugin in compile-custom goal? #62

jizhilong opened this issue Jun 21, 2019 · 3 comments

Comments

@jizhilong
Copy link

Is your feature request related to a problem? Please describe.
I'd like to generate code with a java-written plugin, and don't want these generated codes to be bundled with the main protoc generated java codes.

Describe the solution you'd like
copy the feature of protocPlugin from compile goal to compile-custom goal would be sufficient.

Describe alternatives you've considered
use compile goal for invoking the java-written plugin, but exclude the generated main java classes from the final jar.

Additional context
none.

@jizhilong
Copy link
Author

copy the feature of protocPlugin from compile goal to compile-custom goal would be sufficient.

If this solution makes sense, I'd be happy to suggest a PR.

@ST-DDT
Copy link

ST-DDT commented Jun 26, 2019

I would like to use this feature to generate some tests from the main protos, but still store them in the generated test sources folder, currently this is not possible because the java plugins can only be run alongside the main protoc executable, which will generate the proto message classes multiple times.

@Lander
Copy link

Lander commented Jul 31, 2019

Voting for this feature! I would like to use custom java plugin to generate non-java output without generating java files along the way. Would be great to have such an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants