google / protobuf-gradle-plugin

Protobuf Plugin for Gradle
Other
1.77k stars 273 forks source link

Use task avoidance for sourceSet configuration #614

Closed ejona86 closed 2 years ago

ejona86 commented 2 years ago

Calling generateProtoTask.getOutputSourceDirectorySet() requires configuring the task, so isn't useful for task avoidance. Move the method behavior into ProtobufPlugin so it can be called without configuring the task.