From 575826e23be77e9dce1f5dce3c2c5e887b241627 Mon Sep 17 00:00:00 2001 From: Ultrasonic1209 <44583181+Ultrasonic1209@users.noreply.github.com> Date: Thu, 25 Nov 2021 17:06:25 +0000 Subject: [PATCH] Update gradle.yml --- .github/workflows/gradle.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index e04a295..67cbb0d 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -24,11 +24,21 @@ jobs: distribution: 'adopt' cache: gradle + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b + - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle - run: ./gradlew build jar --no-daemon + run: ./gradlew build jar + + - name: Cleanup Gradle Cache + # Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. + # Restoring these files from a GitHub Actions cache might cause problems for future builds. + run: | + rm -f ~/.gradle/caches/modules-2/modules-2.lock + rm -f ~/.gradle/caches/modules-2/gc.properties - name: Upload a Build Artifact uses: actions/upload-artifact@v2.2.4