cache gradle setup sets up a remote Gradle build cache and generates an init script to use it.
Learn more about Gradle caching →
Usage
Example
The following example creates a remote Gradle build cache and uses it during a build invocation.1
Configure the remote cache
Generate a Gradle init script for the remote cache:
2
Run a build
Use the generated init script during a build:
Options
—cache_name
A name for the cache. Defaults todefault.
—init-gradle
If specified, write the init script to this path.-o, —output
Output format, one ofplain or json. Defaults to plain.
—push
Whether to enable pushing to the cache. Defaults totrue.
—site
Site preference (e.g.iad, fra). If not set, determined automatically.