facebook / buck

A fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.
https://buck.build
Apache License 2.0
8.56k stars 1.16k forks source link

Add support for specifying multiple processor classes on a java_annotation_processor rule #1831

Closed raviagarwal7 closed 6 years ago

raviagarwal7 commented 6 years ago

Single annotation processors can have multiple processor classes. for eg: AutoValue has these

'com.google.auto.value.processor.AutoAnnotationProcessor',
'com.google.auto.value.processor.AutoValueBuilderProcessor',
'com.google.auto.value.extension.memoized.MemoizedValidator',
'com.google.auto.value.processor.AutoValueProcessor',

This now requires creating multiple java_annotation_processor rule.

Would be great if we can specify multiple processor classes. propsBuilder already supports adding multiple processor classes.

Proposed Solution: Add a new argument to java_annotation_processor processor_classes so it is backward compatible and processor_class can be removed afterwards.

raviagarwal7 commented 6 years ago

cc: @jkeljo, @kageiit