From 9cf5a738492627bfc5c03706cec3a0133998a6b7 Mon Sep 17 00:00:00 2001 From: Violeta Georgieva Date: Thu, 1 Aug 2024 16:06:44 +0300 Subject: [PATCH] Remove gradle/actions/setup-gradle deprecated functionality Using the action to execute Gradle via the `arguments` parameter is deprecated https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md#using-the-action-to-execute-gradle-via-the-arguments-parameter-is-deprecated --- .github/workflows/ci.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06e9908..fd2acd6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,11 +14,9 @@ jobs: with: distribution: 'temurin' java-version: 8 - - uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda - name: license header check - with: - arguments: spotlessCheck -PspotlessFrom=origin/${{ github.base_ref }} - - uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda - name: gradle - with: - arguments: check javadoc + - name: Setup Gradle + uses: gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 + - name: license header check + run: ./gradlew spotlessCheck -PspotlessFrom=origin/${{ github.base_ref }} + - name: gradle + run: ./gradlew check javadoc