google / protobuf-gradle-plugin

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

Use plural form default output directory 'generated/sources' #754

Open holgerstolzenberg opened 5 months ago

holgerstolzenberg commented 5 months ago

Currently the plugin per default generates the generated java code into "$project/$buildDir/generated/source". This kinda breaks Gradle best practices, please see screenshot below:

Screenshot 2024-05-02 at 21 49 26

As you can see, all other stuff in the build directory uses a plural based syntax. Even the protobuf plugin does that e.g. for "extracted-protoS" and so on. Also for that manner the generated code is not aggregated with the other generated sources in their respective sourceSets under "generated/sourceS".

Please align the plugins output to the best practices.

Optionally: What is the reasoning behind not having the configurable?