From 8f2eede573e6a298151b8ca2012ecc1e49d0c203 Mon Sep 17 00:00:00 2001 From: Fried Hoeben Date: Mon, 21 Oct 2024 20:25:00 +0200 Subject: [PATCH] Update gradle build in action --- .github/workflows/build-fitnesse.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-fitnesse.yml b/.github/workflows/build-fitnesse.yml index 1f394e107..41e89d2b6 100644 --- a/.github/workflows/build-fitnesse.yml +++ b/.github/workflows/build-fitnesse.yml @@ -19,17 +19,18 @@ jobs: distribution: 'zulu' java-version: ${{ matrix.java-version }} - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v2 + uses: gradle/actions/wrapper-validation@v4 - name: Remove Java 21 incompatible tests if: ${{ matrix.java-version == '21' }} run: rm -rf FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/SystemExitIsPrevented - - name: Build with Gradle - uses: gradle/gradle-build-action@v3 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 with: - arguments: build slimJar sourcesJar javadocJar # Only write to the cache for builds on the 'master' branch. # Builds on other branches will only read existing entries from the cache. cache-read-only: ${{ github.ref != 'refs/heads/master' }} + - name: Build with Gradle + run: ./gradlew build slimJar sourcesJar javadocJar - name: Upload artifacts uses: actions/upload-artifact@v4 with: