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

Incremental Tasks & Up-to-Date Checks

Make custom tasks fast and correct by declaring inputs and outputs so Gradle can skip work that is already up to date.

Why Tasks Get Skipped

Gradle is fast because it does not redo work. If a task ran before and nothing it depends on changed, Gradle marks it UP-TO-DATE and skips it. You enable this by declaring inputs and outputs.

Inputs and Outputs

Every task can declare what it reads (inputs) and what it produces (outputs). Gradle hashes them to decide whether to run.

All lessons in this course

  1. Defining Custom Tasks
  2. Task Types & Actions
  3. Task Properties & Configuration
  4. Incremental Tasks & Up-to-Date Checks
← Back to Groovy & Gradle: JVM Automation and Build Engineering