You Are Probably Already Running gradle/actions
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.