Skip to content

Commit 9579603

Browse files
committed
Update actions to use new Gradle plugins
Signed-off-by: Roy Clarkson <[email protected]>
1 parent cd0db4d commit 9579603

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

.github/workflows/gradle-build.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,7 @@ jobs:
2121
with:
2222
java-version: ${{ inputs.java-version }}
2323
distribution: temurin
24-
- name: Cache Gradle packages
25-
uses: actions/cache@v3
26-
with:
27-
path: |
28-
~/.gradle/caches
29-
~/.gradle/wrapper
30-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
31-
restore-keys: |
32-
${{ runner.os }}-gradle-
33-
- name: Validate Gradle wrapper
34-
uses: gradle/wrapper-validation-action@v1
24+
- name: Set up Gradle
25+
uses: gradle/actions/setup-gradle@v4
3526
- name: Build with Gradle
3627
run: ./gradlew build
37-
- name: Cleanup Gradle Cache
38-
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
39-
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
40-
run: |
41-
rm -f ~/.gradle/caches/modules-2/modules-2.lock
42-
rm -f ~/.gradle/caches/modules-2/gc.properties

0 commit comments

Comments
 (0)