0Pricing
Groovy & Gradle: JVM Automation and Build Engineering · Lesson

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-DATE

All lessons in this course

  1. Build Cache & Daemon
  2. Profiling & Debugging Builds
  3. Parallel Execution & Configuration
  4. Incremental Builds and Task Inputs/Outputs
← Back to Groovy & Gradle: JVM Automation and Build Engineering