up-to-date check
Gradle's check that a task's inputs and outputs are unchanged since its last run, in which case it skips the task.
In more detail
Running ./gradlew test twice without editing anything reports the test tasks as UP-TO-DATE and does no work. This incremental build is what makes Gradle fast on large projects. It only works when tasks declare their inputs and outputs correctly.
Example
> Task :test UP-TO-DATERelated terms
- Gradle task — A unit of work in a Gradle build, such as compileJava or test, which declares its inputs and outputs and its dependencies on other tasks.
- Gradle build cache — A store of task outputs, keyed by their inputs, that lets Gradle reuse results from an earlier build or from a colleague's build.
Taught in
- The Toolchain: Gradle — Modern Java: Virtual Threads & High-Throughput Services