| job-id | A job identifier to avoid cache pollution from different jobs | no | — |
| build-root-directory | Relative path under $GITHUB_WORKSPACE where Git repository is placed | no | — |
| home-directory | Overrides the location of $HOME (e.g. to avoid use of /root when running in Docker) | no | — |
| gradle-version | (wrapper | or explicit version) Caches often depend on the Gradle version, so this parameter sets the ID to use for cache keys. It does not affect the Gradle version used for build | no | wrapper |
| read-only | Configures caches for read-only opreration (e.g. to save GitHub Actions storage limit) | no | false |
| save-generated-gradle-jars | Enables caching of $HOME/.gradle/caches/*.*/generated-gradle-jars | no | true |
| save-local-build-cache | Enables caching of $HOME/.gradle/caches/build-cache-1 | no | true |
| multi-cache-enabled | Adds com.github.burrunan.multi-cache plugin to settings.gradle so GitHub Actions cache can be used in parallel with Gradle remote build cache | no | true |
| multi-cache-version | Configures com.github.burrunan.multi-cache version to use | no | 1.0 |
| multi-cache-repository | Configures repository where com.github.burrunan.multi-cache can be located | no | "" |
| multi-cache-group-id-filter | Configures group id for selecting only com.github.burrunan.multi-cache artifacts (it enables Gradle to use custom repository for multi-cache only) | no | com[.]github[.]burrunan[.]multi-?cache |
| save-gradle-dependencies-cache | Enables caching of ~/.gradle/caches/modules-* | no | true |
| execution-only-caches | Activates only the caches that are relevant for executing gradle command.
This is helpful when build job executes multiple gradle commands sequentially.
Then the caching is implemented in the very first one, and the subsequent should be marked
with execution-only-caches: true
| no | false |
| remote-build-cache-proxy-enabled | Activates a remote cache that proxies requests to GitHub Actions cache | no | true |
| gradle-dependencies-cache-key | Extra files to take into account for ~/.gradle/caches dependencies | no | — |
| save-maven-dependencies-cache | Enables caching of ~/.m2/repository/ | no | true |
| maven-local-ignore-paths | Specifies ignored paths in the Maven Local repository (e.g. the artifacts of the current project) | no | "" |
| debug | Shows extra logging to debug the action | no | true |
| daemon | Enables or disables Gradle Daemon (--no-daemon). Defaults to false as typically the build executes only once in CI, so there's no much value in keeping the daemon | no | false |
| concurrent | Enables concurent cache download and upload (disabled by default for better log output) | no | false |
| arguments | Gradle arguments to pass (optionally multiline) | no | — |
| properties | Extra Gradle properties (multiline) which would be passed as -Pname=value arguments | no | — |
| gradle-build-scan-report | Publishes Gradle Build Scan URL to job report. | no | true |
| gradle-distribution-sha-256-sum-warning | Enables warning when distributionSha256Sum property is missing in gradle-wrapper.properties | no | true |