diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 175909bba..ae3768e20 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,10 +21,10 @@ jobs: with: distribution: 'zulu' java-version: ${{ env.build_java_version }} + - name: Set Up Gradle + uses: gradle/actions/setup-gradle@v4 - name: Build - uses: gradle/actions/setup-gradle@v3 - with: - arguments: build + run: ./gradlew build - name: Check project files unmodified run: | directoryState="$(git status --porcelain)" @@ -76,13 +76,12 @@ jobs: } } } + - name: Set Up Gradle + uses: gradle/actions/setup-gradle@v4 - name: Test - uses: gradle/actions/setup-gradle@v3 + run: ./gradlew test -PallTests -PtestJavaVersion=${{ matrix.test_java_version }} -Porg.gradle.java.installations.paths=${{ env.test_jdk_path }} env: JAVA_HOME: ${{ env.build_jdk_path }} - with: - arguments: test -PallTests -PtestJavaVersion=${{ matrix.test_java_version }} -Porg.gradle.java.installations.paths=${{ env.test_jdk_path }} - cache-disabled: true integration-test: strategy: @@ -125,15 +124,13 @@ jobs: } } } + - name: Set Up Gradle + uses: gradle/actions/setup-gradle@v4 - name: Publish to Maven Local - uses: gradle/actions/setup-gradle@v3 + run: ./gradlew build -xtest -xspotbugsMain -xjavadoc publishToMavenLocal env: JAVA_HOME: ${{ env.build_jdk_path }} - with: - arguments: build -xtest -xspotbugsMain -xjavadoc publishToMavenLocal - name: Integration test - uses: gradle/actions/setup-gradle@v3 + run: ./gradlew runMavenTest -PtestJavaVersion=${{ matrix.test_java_version }} -Porg.gradle.java.installations.paths=${{ env.test_jdk_path }} env: JAVA_HOME: ${{ env.build_jdk_path }} - with: - arguments: runMavenTest -PtestJavaVersion=${{ matrix.test_java_version }} -Porg.gradle.java.installations.paths=${{ env.test_jdk_path }} diff --git a/.github/workflows/check-dependencies.yml b/.github/workflows/check-dependencies.yml index 2f2d3ebda..904d3d127 100644 --- a/.github/workflows/check-dependencies.yml +++ b/.github/workflows/check-dependencies.yml @@ -11,10 +11,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Set Up Gradle + uses: gradle/actions/setup-gradle@v4 - name: Check for dependency updates - uses: gradle/actions/setup-gradle@v3 - with: - arguments: checkDependencyUpdates -DoutputFormatter=plain,json + run: ./gradlew checkDependencyUpdates -DoutputFormatter=plain,json - name: Create issue/comment if ASM is not up-to-date uses: actions/github-script@v7 env: diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml index 5a1717a32..7c9440b6c 100644 --- a/.github/workflows/gradle-wrapper-validation.yml +++ b/.github/workflows/gradle-wrapper-validation.yml @@ -13,4 +13,4 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: gradle/actions/wrapper-validation@v3.3.1 + - uses: gradle/actions/wrapper-validation@v4