google / protobuf-gradle-plugin

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

Extract configuration fields from task to spec class (1/3) #668

Open rougsig opened 1 year ago

rougsig commented 1 year ago

Background To prevent eager task configuration for android, we need to know the list of output folders from generate proto task.

Changes Extract all configuration fields from GenerateProtoTask to one GenerateProtoTaskSpec field.

Test plan Green pipelines.

rougsig commented 1 year ago

note: small part for fix for https://github.com/google/protobuf-gradle-plugin/issues/643.

Second Part will be rewrite generateProtoTask {} to use spec directly without task proxy. Third part will be use extracted values from task as sources for agp/other tasks.