google / protobuf-gradle-plugin

Protobuf Plugin for Gradle
Other
1.76k stars 274 forks source link

support xxx_opt flag on protoc #681

Open hithran opened 1 year ago

hithran commented 1 year ago

This fixes the issue in https://github.com/google/protobuf-gradle-plugin/issues/210 and is based upon the work done in https://github.com/google/protobuf-gradle-plugin/pull/290.

Not sure if the last comment https://github.com/google/protobuf-gradle-plugin/issues/210#issuecomment-964901448 means that this will not be accepted, but I ran into the issue with the out flag on Windows.

What I needed was a way to pass java_multiple_files=true as option, only to learn later on that it is not possible, as it is a file option. But I already implemented this, maybe it is still useful.