User Guide
How to use Buildish Mammoth Cache for Gradle and Maven in your workflows.
You are reading documentation for 0.1.1. The latest release in the 0.1 line is 0.1.2.
The latest stable release is 0.8.4.
Buildish Mammoth Cache for Gradle and Maven is a pair of CI actions that cache the build tool’s local artifact store across workflow runs:
GRADLE_USER_HOME and provisions Gradle wrapper JARs securely before the
build starts.~/.m2 by default).Both actions share the same two-phase prepare/finalize lifecycle and support single-job and distributed multi-job topologies.
In the most common setup, the action wraps a single build job: it restores the newest compatible immutable generation before the build and publishes a new complete generation after a material change. This avoids re-downloading dependencies on every run without creating duplicate entries for unchanged runs.
When a workflow runs multiple build jobs in parallel — for example, one job per subproject or one job per test suite — independent full-cache generations diverge. Restoring only the newest generation then loses the dependency downloads that exist solely in the other workers’ generations.
This action solves that with a delta exchange model:
The result: every parallel job’s dependency downloads are captured in one merged generation.
graph LR
BC["Base cache\n(previous run)"] --> W1 & W2 & W3
W1["Worker A\nbuild + delta"] -- "Δ artifact A" --> AGG
W2["Worker B\nbuild + delta"] -- "Δ artifact B" --> AGG
W3["Worker C\nbuild + delta"] -- "Δ artifact C" --> AGG
AGG["Aggregator\nmerge + save"] --> BC2["Base cache\n(this run)"]
How to use Buildish Mammoth Cache for Gradle and Maven in your workflows.
Design documents covering the internal architecture of Buildish Mammoth Cache for Gradle and Maven.
Architecture, portability, and release information for contributors to Buildish Mammoth Cache for Gradle and Maven.
Threat model for Buildish Mammoth Cache for Gradle and Maven.
This patch release adds support for Gradle’s current signing key when provisioning and verifying missing Gradle wrapper JARs. Pin the current primary key EA96F38569C044AAEF7FCF732887F479B0B9771A and its dedicated signing subkey F3FF33E96F18AA62DD580F9651FBF517CE6D6B80, as published on Gradle’s signing-key page. Check the signing subkey identity during detached-signature verification and retain the previous pinned key for older wrapper versions. Skip finalization after preparation fails so the action does not save caches or publish worker artifacts from a failed preparation. The Gradle and Maven actions continue to use the Node.js 24 runtime. Use the exact v0.1.1-rc1 tag during candidate review and v0.1.1 after final promotion, at actions/github/gradle or actions/github/maven. Ordinary source branches omit the generated executable bundles.