A GitHub Action to execute Gradle tasks with the Gradle Wrapper.
The action also implements some work usually done together with a Gradle execution in a GitHub Actions workflow:
- caching the Gradle distribution and project dependencies
- uploading build-artifacts
Required The root directory of the Gradle project.
Default '.'.
Required Arguments for the Gradle execution, usually tasks and further settings. Default "tasks".
Required File paths that specify the Gradle distribution in use to cache it.
Supports glob patterns and multiple files or patterns as a comma-separated list.
Default 'gradle/wrapper/gradle-wrapper.properties'.
Required File paths that specify Gradle project dependencies to cache them.
Supports glob patterns and multiple files or patterns as a comma-separated list.
Default '**/*.gradle*,gradle/libs.versions.toml'.
Optional artifacts to upload after the Gradle execution. Artifacts are specified as a name and one or more paths separated by space characters, where each path can be a glob pattern. You can specify multiple artifacts declaring one per line.
- uses: actions/setup-java@v5 # setup java for Gradle execution
- name: gradle execution
uses: christopherfrieler/gradle-wrapper-action@v0.7.0
with:
arguments: 'build --info'
artifacts: |
package build/libs/*.jarIf you have an idea, problem or question about the gradle-wrapper-action, you can open an issue.
If you want to clone the repository and work on the code, have a look at the DEVELOPING.md.