Litho: Support for incremental annotation processing in Gradle

Created on 29 Jan 2019  路  3Comments  路  Source: facebook/litho

Gradle supports incremental annotation processing since version 4.7 to speed up compilation process.
For details see:
https://docs.gradle.org/nightly/userguide/java_plugin.html#sec:incremental_annotation_processing

https://github.com/gradle/gradle/issues/5277

Litho currently doesn't support incremental annotation processing. AFAIK, by default, it will make Gradle disable incremental annotation processing for the entire module. It will be great if Litho enable this feature as Litho heavily depends on annotation processing.

Most helpful comment

I can take a look at this and give it a try!

All 3 comments

I can take a look at this and give it a try!

@harliedharma the PR for incremental annotation processing has been merged! You can close this :)

I am on the latest version(0.33.0) and I am still getting this error:
Incremental annotation processing requested, but support is disabled because the following processors are not incremental: com.facebook.litho.specmodels.processor.testing.ComponentsTestingProcessor (NON_INCREMENTAL)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

passy picture passy  路  3Comments

Syne10 picture Syne10  路  6Comments

tpucci picture tpucci  路  4Comments

just-kip picture just-kip  路  8Comments

TimurKhairnasov picture TimurKhairnasov  路  6Comments