Skip to content

Commit 68654c1

Browse files
committed
Upgrade to Gradle 7.6, switch to maven-publish plugin, upgrade credentials plugin
1 parent 7af6935 commit 68654c1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,24 @@ jobs:
2828
with:
2929
java-version: '11'
3030
distribution: 'temurin'
31+
cache: gradle
32+
- name: Validate Gradle wrapper
33+
uses: gradle/wrapper-validation-action@55e685c48d84285a5b0418cd094606e199cca3b6
3134
- name: Build with Gradle
3235
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
3336
with:
3437
arguments: build
38+
- name: Cleanup Gradle Cache
39+
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
40+
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
41+
run: |
42+
rm -f ~/.gradle/caches/modules-2/modules-2.lock
43+
rm -f ~/.gradle/caches/modules-2/gc.properties
44+
rm -fr ~/.gradle/caches/*/plugin-resolution/
45+
find ~/.gradle/caches/ -name "*.lock" -type f -delete
46+
- name: build artifact
47+
uses: actions/upload-artifact@v3
48+
with:
49+
name: build-artifacts
50+
path: build/libs
51+
retention-days: 1

0 commit comments

Comments
 (0)