Task outputs
Restore outputs when Gradle finds a matching cacheable task.
Connect Gradle’s HTTP build cache to a shared workspace. Reuse cacheable task outputs from CI or a teammate’s compatible build.
.boringcache.toml
workspace = "my-org/app" [adapters.gradle] tag = "gradle-cache" command = ["./gradlew", "build", "--build-cache"]
boringcache gradle
permissions: contents: read id-token: write steps: - uses: boringcache/one@f0fb9b2d926a32b10c543e92093ba00c5a291b79 # v1.33.0 with: mode: gradle trust-policy: auto - run: ./gradlew build --build-cache
steps: - label: Build command: > boringcache ci run --oidc-provider buildkite -- boringcache gradle
build: timeout: 1h id_tokens: BORINGCACHE_OIDC_TOKEN: aud: urn:boringcache:workload script: - boringcache ci run --oidc-provider gitlab -- boringcache gradle
Restore outputs when Gradle finds a matching cacheable task.
Gradle keeps its cacheability decisions and input keys.
Use one workspace in CI and local development.
Keep your wrapper and build commands. Use the workspace to inspect reads, misses, transfers, and stored cache.
Track cache reads, writes, transfers, and stored data across your builds.
Explore the workspace →78%
OpenTelemetry Java · compared with actions/cache
Give consumers restore access and publishers a separate permission. Connect supported CI through OIDC or use scoped credentials.
Connect your CI →Separate readers and publishers
Install the CLI. Run onboarding to connect your repository and configure your cache.
30 GB of cache free. No credit card required.
curl -sSL https://install.boringcache.com/install.sh | sh
boringcache onboard
boringcache gradle
We use cookies to understand how people use BoringCache. Learn more