Incremental Builds and Task Inputs/Outputs
Understand how Gradle skips work it has already done by tracking task inputs and outputs, and learn to make custom tasks correctly incremental and cacheable.
What Makes a Build Fast?
The fastest task is the one Gradle does not run. Incremental builds let Gradle skip tasks whose inputs and outputs have not changed since the last run.
UP-TO-DATE Checks
When a task reports UP-TO-DATE, Gradle compared the current inputs/outputs against a stored snapshot and found no change, so it skipped execution.
gradle compileJava
> Task :compileJava UP-TO-DATEAll lessons in this course
- Build Cache & Daemon
- Profiling & Debugging Builds
- Parallel Execution & Configuration
- Incremental Builds and Task Inputs/Outputs