Skip to content

Commit f4496a9

Browse files
authored
ci: Use the setup-gradle action (#2214)
- https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#why-use-the-setup-gradle-action - https://github.com/gradle/actions/releases/tag/v4.0.0-rc.1: wrapper validation is now enabled in the setup-gradle action by default, removing the need to use a separate workflow file with the `gradle/actions/wrapper-validation` action - https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#incompatibility-with-other-caching-mechanisms
1 parent 76ddf43 commit f4496a9

File tree

3 files changed

+8
-30
lines changed

3 files changed

+8
-30
lines changed

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/gradle.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ jobs:
7171
with:
7272
distribution: 'zulu'
7373
java-version: ${{ matrix.java }}
74-
cache: 'gradle'
74+
75+
- name: Setup Gradle
76+
uses: gradle/actions/setup-gradle@v4
7577

7678
- name: Build with Gradle
7779
run: |

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ jobs:
1212
with:
1313
java-version: '11'
1414
distribution: 'zulu'
15-
cache: 'gradle'
15+
16+
- name: Setup Gradle
17+
uses: gradle/actions/setup-gradle@v4
18+
1619
- name: Publish package
1720
env:
1821
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
1922
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
2023
PGP_SECRET: ${{ secrets.SIGNING_KEY }}
2124
PGP_PASSPHRASE: ${{ secrets.SIGNING_PASSWORD }}
22-
run: ./gradlew publish
25+
run: ./gradlew publish

0 commit comments

Comments
 (0)