Skip to content
Skills Library
DevOps & cloud · Building & coding

github-workflow-gradle-template

/github-workflow-gradle-template

Provides a GitHub Actions CI workflow template for Gradle/Java projects. Claude should use this skill when creating or updating CI workflows to ensure current action versions and best practices are followed.

Licence
Apache-2.0
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Provides a GitHub Actions CI workflow template for Gradle/Java projects. Claude should use this skill when creating or updating CI workflows to ensure current action versions and best practices are followed.

Original author description

Provides a GitHub Actions CI workflow template for Gradle/Java projects. Claude should use this skill when creating or updating CI workflows to ensure current action versions and best practices are followed.

How it works

  1. Key Points
  2. Customization
Original SKILL.md headings · 59 lines, 181 words
SKILL.md preview
---
name: github-workflow-gradle-template
description: Provides a GitHub Actions CI workflow template for Gradle/Java projects. Claude should use this skill when creating or updating CI workflows to ensure current action versions and best practices are followed.
---

# GitHub Actions Workflow Template for Gradle Projects

When creating a GitHub Actions CI workflow for a Gradle/Java project, use this template:

```yaml
name: CI

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Set up JDK 17
        uses: actions/setup-java@v4
        with:
          java-version: '17'
          distribution: 'temurin'

      - name: Setup Gradle
        uses: gradle/actions/setup-gradle@v4
        with:
          cache-read-only: false

      - name: Build with Gradle
        run: ./gradlew build
```

## Key Points

1. **Action versions** (as of December 2025):
   - `actions/checkout@v4`
   - `actions/setup-java@v4`
   - `gradle/actions/setup-gradle@v4`

2. **Do NOT use deprecated actions**:
   - `gradle/wrapper-validation-action` - no longer needed, wrapper validation is included in `gradle/actions/setup-gradle`
   - `gradle/gradle-build-action` - replaced by `gradle/actions/setup-gradle`

3. **Avoid redundant steps**:
   - `./gradlew build` already runs tests, so a separate `./gradlew test` step is unnecessary

4. **Gradle caching**: The `gradle/actions/setup-gradle` action handles caching automatically. Use `cache-read-only: false` to allow cache writes.

## Customization

Adjust as needed for your project:
- Change `java-version` if using a different JDK version
- Add additional branches to the trigger
- Add environment variables or secrets as required

Versions

The database has no other skills named github-workflow-gradle-template.

Database snapshot: 13.11.2026 · package version b675511eff6c (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100github-actions-gradle-cache
    Diagnose and fix stale Gradle dependency caches in GitHub Actions by deleting the setup-gradle gradle-home caches. Claude should use this skill when a Gradle build in GitHub Actions cannot resolve a SNAPSHOT dependency, or resolves an outdated SNAPSHOT, that resolves correctly locally.
  • 100github-actions-style
    GitHub Actions workflow and composite action conventions for MLflow. Use when writing, modifying, or reviewing workflows in .github/workflows/ or actions in .github/actions/ in this repository.
  • 100github-actions-template
    GitHub Actions CI pipeline templates and workflow YAML patterns. TRIGGER when: creating or editing a CI workflow, adding a CI job, or wiring build/test/deploy steps. SKIP: container build internals (use docker-templates); local git workflow (use git-operations).
  • 100github-actions
    Use when creating or updating GitHub Actions CI/CD workflows for automated testing, static analysis, and artifact deployment.
  • 90github-actions
    Apply when writing or editing any workflow, composite action, job, or step — and read the owner pointers before adding a rule. Esposter's GitHub Actions authoring for `.github/workflows` and `.github/actions`: how a step is written.
  • 100github-actions
    Use when adding CI/CD, creating workflows, auditing GitHub Actions, or fixing action pinning. Creates and audits workflows for SHA pinning and permissions.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.