Skip to content

Caching

How do I cache Gradle builds?

Quick answer

Cache ~/.gradle/caches and ~/.gradle/wrapper, and enable the build and configuration caches.

The detail that matters

gradle/actions/setup-gradle does this properly, including cleaning stale entries that otherwise grow without bound.

Your next build could be twice as fast, at half the price

Start free. Migrating away is the same one line, and we publish that diff too.