I’m looking for an explanation of how Gradle does incremental compilation of Java code.
Background: I have a tiny little test project where it works fine: no changes, no rebuild; change the source, Gradle recompiles. And I have an experimental Gradle script for building our large, hairy production source tree where it does not work: if I change the source code, Gradle does not recompile. (It does recompile if I delete .class files.)
Before I try to strip this down to a reproducible example and report a bug, I need to understand how Gradle does incremental compilation. Perhaps there is a subtle error in my build script causing this. But I can’t find anything in the documentation – the user manual contains two occurrences of the word “incremental” with no concrete explanation.