This library and annotation processor helps you generate the META-INF descriptor,
and return the appropriate value from your processor's getSupportedOptions() if it's dynamic.
Usage
Add the incap library to your compile-time dependencies, and the incap-processor to your annotation processor path:
Note: it's OK to use compileOnly in Gradle, or the provided scope in Maven,
despite the annotation having class retention, because annotation processors aren't libraries that others compile against.
Annotate your annotation processor with @IncrementalAnnotationProcessor
If the choice of incrementality support is dynamic (i.e. you used the DYNAMIC value above), use the IncrementalAnnotationProcessorType enumeration's getProcessorOption() from your getSupportedOptions() to get the appropriate constant.
请发表评论