From 3385c2bd08632c483de33a6e06d4b3ca69d76d65 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 11 Feb 2024 19:09:25 +0100 Subject: [PATCH] chore(deps): Bump gradle/gradle-build-action from 2 to 3 (#1091) * chore(deps): Bump gradle/gradle-build-action from 2 to 3 Bumps [gradle/gradle-build-action](https://github.com/gradle/gradle-build-action) from 2 to 3. - [Release notes](https://github.com/gradle/gradle-build-action/releases) - [Commits](https://github.com/gradle/gradle-build-action/compare/v2...v3) --- updated-dependencies: - dependency-name: gradle/gradle-build-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * feat: switch to setup-gradle GH action --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Benoit Orihuela --- .github/workflows/anchore.yml | 6 +++--- .github/workflows/build.yml | 8 ++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/anchore.yml b/.github/workflows/anchore.yml index 212ac25cb..774cd05f8 100644 --- a/.github/workflows/anchore.yml +++ b/.github/workflows/anchore.yml @@ -16,10 +16,10 @@ jobs: with: distribution: 'temurin' java-version: '21' + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 - name: Assemble project - uses: gradle/gradle-build-action@v2 - with: - arguments: assemble + run: ./gradlew assemble - name: Upload jars artifacts uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8da0f1101..b8dd8f45a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,12 +29,8 @@ jobs: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - - name: Cache Gradle packages - uses: actions/cache@v4 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - restore-keys: ${{ runner.os }}-gradle + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 - name: Build env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any