lfreleng-actions/gradle-build

Set up a specific JDK version and run a Gradle build

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 8, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: lfreleng-actions/gradle-build-action@0e844f5c498403579bfba3a2eaf2ff7705719ff5 # v0.4.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
java-versionOpenJDK version (ignored when 'java-version-file' is set). Defaults to 21 (LTS)no21
jdk-versionDeprecated alias for java-version; retained for backward compatibilityno""
distributionOpenJDK distributionnotemurin
java-version-filePath to a '.java-version' file (takes precedence over java-version)no
java-packageJDK package type: 'jdk', 'jre', 'jdk+fx', or 'jre+fx'nojdk
architectureArchitecture of the JDK package (defaults to the runner's architecture)no
check-latestWhen 'true', resolve the latest version satisfying the version specnofalse
setup-java-tokenToken used by setup-java when fetching version manifests (useful on GHES or under rate limits)no
pathPath to the Gradle project (directory containing gradlew)no.
build-argumentsArguments to pass to the Gradle Wrapper (default: build)nobuild
gradle-versionGradle version to use. If unset the project's Gradle Wrapper is usedno
artifact-uploadUpload Gradle test reports as a workflow artefactnotrue
artifact-nameName for the uploaded artefact (defaults to gradle-build-<job>)no""
cache-providerCaching implementation: 'enhanced' (default) or 'basic' (MIT)noenhanced
cache-disabledWhen 'true', all caching is disablednofalse
cache-read-onlyWhen 'true', restore cache entries but do not write new onesnofalse
cache-write-onlyWhen 'true', save cache entries but do not restore themnofalse
cache-encryption-keyBase64 AES key used to encrypt configuration-cache datano
cache-cleanupGradle User Home cleanup: 'never', 'on-success' (default) or 'always'noon-success
validate-wrappersWhen 'true' (default) validate checksums of all gradlew jarsnotrue
add-job-summaryEmit a Job Summary: 'never', 'always' (default), or 'on-failure'noalways
add-job-summary-as-pr-commentPost Job Summary as PR comment: 'never' (default), 'always', 'on-failure'nonever
dependency-graphDependency snapshot mode: 'disabled' (default), 'generate', 'generate-and-submit', 'generate-submit-and-upload', 'generate-and-upload', 'download-and-submit'nodisabled
build-scan-publishPublish results as a Build Scan on scans.gradle.comnofalse
build-scan-terms-of-use-urlBuild Scan terms of use URL (required if publishing)no
build-scan-terms-of-use-agreeSet to 'yes' to agree to the Build Scan terms of useno
develocity-urlURL of a Develocity server (enables injection)no
develocity-access-keyDevelocity access key (pass via secrets)no
namedescription
build-scan-urlLink to the Build Scan generated by the Gradle build
gradle-versionVersion of Gradle set up by the action
java-versionActual version of the Java environment installed
java-distributionDistribution of Java that was installed
java-homePath to the installed Java environment (equivalent to JAVA_HOME)
artifact-nameName of the uploaded test-report artefact (empty when not uploaded)