diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 358a2b9..3f86ff5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,14 +28,14 @@ jobs: # ================================ - name: Shallow clone if: ${{ matrix.jdk != 21 }} - uses: actions/checkout@v3 + uses: actions/checkout@v4 # ================================ # CHECKOUT # ================================ - name: Checkout git branch if: ${{ matrix.jdk == 21 }} - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Fetch all history for all tags and branches (recommended by SonarQube) fetch-depth: 0 @@ -44,7 +44,7 @@ jobs: # SET UP JDK # ================================ - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-package: jdk @@ -54,7 +54,7 @@ jobs: # CACHE SONARCLOUD PACKAGES # ================================ - name: Cache SonarCloud packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: ${{ runner.os }}-sonar path: | @@ -66,7 +66,7 @@ jobs: # SETUP GRADLE # ================================ - name: Setup Gradle - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 with: cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }} @@ -74,7 +74,7 @@ jobs: # BUILD # ================================ - name: Build - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 with: arguments: build -x check --info --scan @@ -82,7 +82,7 @@ jobs: # CHECK # ================================ - name: Check - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 with: arguments: check --info --scan @@ -101,6 +101,6 @@ jobs: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: https://sonarcloud.io SONAR_ORGANIZATION: leakyabstractions - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 with: arguments: sonarqube --info --scan diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1aa1418..48996ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,13 +18,13 @@ jobs: # CHECKOUT # ================================ - name: Checkout git tag - uses: actions/checkout@v3 + uses: actions/checkout@v4 # ================================ # SET UP JDK # ================================ - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-package: jdk @@ -48,6 +48,6 @@ jobs: ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} ORG_GRADLE_PROJECT_sonatypeStagingProfileId: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 with: arguments: publish -Prelease --info --scan diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index ecd88b2..f280f57 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -50,6 +50,6 @@ jobs: ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.PUBLISH_PASSWORD }} ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 with: arguments: publish -Psnapshot --info --scan