diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 976394da116..24f4b47c2d6 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -33,6 +33,7 @@ jobs: with: java-version: 17 distribution: 'temurin' + cache: gradle - name: Build with Gradle run: ./gradlew bootJar diff --git a/.github/workflows/check-package.yml b/.github/workflows/check-package.yml index af6c2260d65..406db7c187e 100644 --- a/.github/workflows/check-package.yml +++ b/.github/workflows/check-package.yml @@ -38,6 +38,7 @@ jobs: with: java-version: 20 distribution: 'temurin' + cache: gradle - name: Build bootJar with Gradle run: ./gradlew check build diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index d42c3aa797a..eede133d6de 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -29,11 +29,12 @@ jobs: # a pull request then we can checkout the head. fetch-depth: 2 - - name: Set up JDK 11 + - name: Set up JDK 17 uses: actions/setup-java@v4 with: java-version: 17 distribution: 'temurin' + cache: gradle # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index cbec2a32a12..5b54b62e4cc 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -24,6 +24,7 @@ jobs: with: java-version: 17 distribution: 'temurin' + cache: gradle - name: Build javadoc run: ./gradlew --no-daemon javadoc diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 1b0828fcdff..1879e2262b2 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -27,6 +27,7 @@ jobs: with: java-version: ${{ matrix.java_version }} distribution: 'temurin' + cache: gradle - name: Build with Gradle run: ./gradlew check --stacktrace - name: Archive test results diff --git a/.github/workflows/javadoc.yml b/.github/workflows/javadoc.yml index ec8bc5c1b6c..391052f8d68 100644 --- a/.github/workflows/javadoc.yml +++ b/.github/workflows/javadoc.yml @@ -23,5 +23,6 @@ jobs: with: java-version: 17 distribution: 'temurin' + cache: gradle - name: Check javadoc build run: ./gradlew javadoc --stacktrace diff --git a/.github/workflows/publish-to-sonatype.yml b/.github/workflows/publish-to-sonatype.yml index 2c5dc68bd01..8dd8c892fa0 100644 --- a/.github/workflows/publish-to-sonatype.yml +++ b/.github/workflows/publish-to-sonatype.yml @@ -18,6 +18,7 @@ jobs: with: java-version: 17 distribution: 'temurin' + cache: gradle - name: Publish to Sonatype run: ./gradlew publishMavenPublicationToSonatypeRepository -PsimplifyVersion env: diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 8923c07c393..1866a759a25 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -52,6 +52,7 @@ jobs: with: java-version: 17 distribution: 'temurin' + cache: gradle - name: SonarCloud Scan on PR if: github.event.workflow_run.event == 'pull_request' run: ./gradlew check sonar -Dsonar.scm.revision=${{ github.event.workflow_run.head_sha }} -Dsonar.pullrequest.key=${{ fromJson(steps.get_pr_data.outputs.data).number }} -Dsonar.pullrequest.branch=${{ fromJson(steps.get_pr_data.outputs.data).head.ref }} -Dsonar.pullrequest.base=${{ fromJson(steps.get_pr_data.outputs.data).base.ref }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 85520dfe0be..0c1ba6c3209 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,6 +35,7 @@ jobs: with: java-version: 20 distribution: 'temurin' + cache: gradle - name: Build bootJar with Gradle run: ./gradlew check bootJar diff --git a/.github/workflows/update-gradle.yml b/.github/workflows/update-gradle.yml index 11542359b70..82ef2caa042 100644 --- a/.github/workflows/update-gradle.yml +++ b/.github/workflows/update-gradle.yml @@ -17,6 +17,7 @@ jobs: with: java-version: 17 distribution: 'temurin' + cache: gradle - name: Update Gradle Wrapper uses: gradle-update/update-gradle-wrapper-action@v1