Build tooling
Gradle build cache
Enables task output reuse for cacheable tasks. Static Gradle 9.2.0 example; Gradle execution unverified.
Formal Syntax & Structure
java syntaxjava
--build-cacheWorking Example
Example Snippetjava
# Same trusted local project and fixed JDK, no external dependencies.gradle --offline clean :app:build --no-build-cache --no-configuration-cachegradle --offline :app:build --no-build-cache --no-configuration-cachegradle --offline clean :app:build --build-cache --no-configuration-cachegradle --offline clean :app:build --build-cache --no-configuration-cache# Separate configuration-cache experiment on an unchanged build.gradle --offline :app:build --configuration-cachegradle --offline :app:build --configuration-cache