Skip to content

Commit 9124b70

Browse files
authored
Use setup-gradle action (#217)
This adds the [setup-gradle](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md) action which is officially maintained by gradle and is more efficient with caching.
1 parent 603c219 commit 9124b70

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/check.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,43 +25,41 @@ jobs:
2525
with:
2626
distribution: 'temurin'
2727
java-version: '8'
28-
cache: 'gradle'
2928

3029
- name: Setup JDK 11
3130
id: setup-java-11
3231
uses: actions/setup-java@v4
3332
with:
3433
distribution: 'temurin'
3534
java-version: '11'
36-
cache: 'gradle'
3735

3836
- name: Setup JDK 17
3937
id: setup-java-17
4038
uses: actions/setup-java@v4
4139
with:
4240
distribution: 'temurin'
4341
java-version: '17'
44-
cache: 'gradle'
4542

4643
- name: Setup JDK 21
4744
id: setup-java-21
4845
uses: actions/setup-java@v4
4946
with:
5047
distribution: 'temurin'
5148
java-version: '21'
52-
cache: 'gradle'
5349

5450
- name: Setup JDK 23
5551
id: setup-java-23
5652
uses: actions/setup-java@v4
5753
with:
5854
distribution: 'temurin'
5955
java-version: '23'
60-
cache: 'gradle'
6156

6257
- name: Set JAVA_HOME
6358
run: echo "JAVA_HOME=${{ steps.setup-java-21.outputs.path }}" >> $GITHUB_ENV
6459

60+
- name: Setup Gradle
61+
uses: gradle/actions/setup-gradle@v4
62+
6563
- name: Setup gradle properties
6664
run: |
6765
cat .github/env/${{ runner.os }}/gradle.properties >> gradle.properties

0 commit comments

Comments
 (0)