diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87656f3..6f9c9a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,18 +29,15 @@ jobs: GPG_PRIVATE_KEY: ${{ secrets.PGP_SIGNING_KEY }} GPG_PRIVATE_PASSWORD: ${{ secrets.PGP_SIGNING_PASSWORD }} steps: - - name: Check out - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3 - name: Cached Gradle - uses: actions/cache@v2 + uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 #v2 + - name: Set up JDK 17 + uses: actions/setup-java@de1bb2b0c5634f0fc4438d7aa9944e68f9bf86cc #v3 with: - path: ~/.gradle - key: gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} - restore-keys: gradle- - - name: Set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 + java-version: 17 + distribution: 'temurin' - name: Check run: ./gradlew build check shell: bash diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 31216cf..6d82ac3 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -21,18 +21,15 @@ jobs: build-upload: runs-on: ubuntu-latest steps: - - name: Check out - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3 - name: Cached Gradle - uses: actions/cache@v2 + uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 #v2 + - name: Set up JDK 17 + uses: actions/setup-java@de1bb2b0c5634f0fc4438d7aa9944e68f9bf86cc #v3 with: - path: ~/.gradle - key: gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} - restore-keys: gradle- - - name: Set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 + java-version: 17 + distribution: 'temurin' - name: Check run: ./gradlew build check shell: bash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 55181bb..58c8dd7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,18 +14,15 @@ jobs: check: runs-on: ubuntu-latest steps: - - name: Check out - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3 - name: Cached Gradle - uses: actions/cache@v2 + uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 #v2 + - name: Set up JDK 17 + uses: actions/setup-java@de1bb2b0c5634f0fc4438d7aa9944e68f9bf86cc #v3 with: - path: ~/.gradle - key: gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} - restore-keys: gradle- - - name: Set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 + java-version: 17 + distribution: 'temurin' - name: Build & Check run: ./gradlew build check shell: bash