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.
In more detail
Where an up-to-date check only compares against the previous run in the same folder, the build cache can restore outputs produced anywhere with identical inputs. A shared remote cache speeds up teams and build servers.
Related terms
- 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.
- 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.
Taught in
- The Toolchain: Gradle — Modern Java: Virtual Threads & High-Throughput Services