Incremental annotation processing in java compile task

My java compile task contains an annotation processor creating some java-files, and I am using the incubating incremental compilation feature. If I delete or rename a java-class, the corresponding generated java-class is not deleted. Is incremental annotation processing supported? If yes, how can Gradle be advised to respect the mapping from original java-file to generated java-file?

Thanks,

Luzi

Hi Luzi,

This will require changes to the incremental compiler implementation. There’s no flag or anything like that to turn on and make it work unfortunately.

I’ve raised GRADLE-3259 for this.

Hi Luke, thanks for the information and raising an issue.