xolstice / protobuf-maven-plugin

Maven Plugin that executes the Protocol Buffers (protoc) compiler
https://www.xolstice.org/protobuf-maven-plugin/
Other
242 stars 79 forks source link

Allow to add arguments to protoc #77

Open xavipen opened 4 years ago

xavipen commented 4 years ago

In protobuffer 3.12.0 it has been added experimental support for optional in proto3.

In order to activate this the following flag should be added to protoc: --experimental_allow_proto3_optional

I have read the documentation and it seems that it is not possible to pass any additional parameter to protoc using this plugin.

It would be great if it would be possible to add arguments to the protocArtifact to be able to activate experimental supports

melocotton commented 4 years ago

Hello, I've created a PR to add support of experimental_allow_proto3_optional.

https://github.com/xolstice/protobuf-maven-plugin/pull/78