Replace occurrances of gradle-build-action

- Mostly with `setup-gradle`
- Some with `gradle-actions`
This commit is contained in:
daz
2024-01-25 12:28:05 -07:00
parent 930d449ff7
commit a628cf9f2e
24 changed files with 93 additions and 111 deletions

View File

@@ -4,8 +4,7 @@ This repository contains a set of GitHub Actions that are useful for building Gr
## The `setup-gradle` action
A simple wrapper around `gradle/gradle-build-action`, removing the deprecated `arguments` parameter (and thus removing the ability to _execute_ gradle).
The intention is to eventually deprecate `gradle-build-action` with this being the replacement.
This replaces the previous `gradle/gradle-build-action`, which now delegates to this implementation.
### Example usage
@@ -21,18 +20,17 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v0
uses: gradle/actions/setup-gradle@v3-beta
- name: Build with Gradle
run: ./gradlew build
```
See the [`gradle-build-action` documentation](https://github.com/gradle/gradle-build-action/blob/main/README.md) for a full description of this action.
See the [full action documentation](setup-gradle/README.md) for more advanced usage scenarios.
## The `dependency-submission` action
Generates and submits a dependency graph for a Gradle project, allowing GitHub to alert about reported vulnerabilities in your project dependencies.
The following workflow will generate a dependency graph for a Gradle project and submit it immediately to the repository via the
Dependency Submission API. For most projects, this default configuration should be all that you need.
@@ -53,7 +51,7 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v0
uses: gradle/actions/dependency-submission@v3-beta
```
See the [full action documentation](dependency-submission/README.md) for more advanced usage scenarios.