Skip to content

Commit

Permalink
Add Gradle Cache
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 committed Mar 5, 2024
1 parent d4205b0 commit 0e0a7d5
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
with:
java-version: 17
distribution: 'temurin'
cache: gradle

- name: Build with Gradle
run: ./gradlew bootJar
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/check-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
with:
java-version: 20
distribution: 'temurin'
cache: gradle

- name: Build bootJar with Gradle
run: ./gradlew check build
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
with:
java-version: 17
distribution: 'temurin'
cache: gradle

- name: Build javadoc
run: ./gradlew --no-daemon javadoc
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ jobs:
with:
java-version: 17
distribution: 'temurin'
cache: gradle
- name: Check javadoc build
run: ./gradlew javadoc --stacktrace
1 change: 1 addition & 0 deletions .github/workflows/publish-to-sonatype.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
with:
java-version: 17
distribution: 'temurin'
cache: gradle
- name: Publish to Sonatype
run: ./gradlew publishMavenPublicationToSonatypeRepository -PsimplifyVersion
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
with:
java-version: 20
distribution: 'temurin'
cache: gradle

- name: Build bootJar with Gradle
run: ./gradlew check bootJar
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e0a7d5

Please sign in to comment.