gradle/actions is a collection of GitHub Actions published by Gradle, most notably setup-gradle, used by over 45,000 open source repositories and baked into GitHub's official Gradle starter workflow. The action solves the non-trivial problem of correctly caching Gradle's User Home directory in ephemeral CI runners, handling dependency caching, wrapper validation (to detect tampered Gradle Wrappers), and dependency graph submission for Dependabot. It also surfaces Build Scan links directly in the GitHub UI. Major JVM projects like Spring Boot, Micronaut, Ktor, OkHttp, Retrofit, JUnit 5, Mockito, and OpenTelemetry's Java SDK all use it. The minimal setup is a single line of YAML that enables caching, wrapper validation, and Build Scan integration out of the box.

9m read timeFrom blog.gradle.org
Post cover image
Table of contents
Table of ContentsIntroductionWhat it actually is #The unglamorous hard problem #You can read this off other people’s files #The small luxury #Using it #The pitch, plainly #Discuss
1.7K Impressions