atteo / classindex

Index classes, do not scan them!
Apache License 2.0
263 stars 43 forks source link

Incremental compilation using Gradle is disabled #61

Closed caseyduquettesc closed 1 year ago

caseyduquettesc commented 4 years ago

In my Gradle log, I noticed that it needs to perform a full recompilation for some of the subprojects because of ClassIndexProcessor usage.

> Task :compileJava
Created classpath snapshot for incremental compilation in 0.049 secs.
Class dependency analysis for incremental compilation took 0.257 secs.
Full recompilation is required because org.atteo.classindex.processor.ClassIndexProcessor is not incremental. Analysis took 0.359 secs.

The message looks odd to me because I thought the annotation would work with incremental compilation. I looked at the Gradle documentation for marking annotation processors as incremental and couldn't find META-INF/gradle/incremental.annotation.processors in the published jar for classindex.

https://docs.gradle.org/4.10.3/userguide/java_plugin.html#sec:incremental_annotation_processing

Maybe I'm missing something? Or is this not supposed to work? Thanks

Gradle version: 4.10.3 JDK 8 classindex version: "org.atteo.classindex:classindex:3.4"