Skip to content

Commit

Permalink
Adopt gradle/actions/setup-gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Feb 26, 2024
1 parent bbce369 commit e9af292
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ jobs:
fetch-depth: 0
- uses: gradle/wrapper-validation-action@v2
- name: set-up-jdk
uses: actions/setup-java@v4.0.0
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
cache: gradle
- name: build
run: ./gradlew ${GRADLE_SWITCHES} build test
uses: gradle/actions/setup-gradle@v3
with:
arguments: ${GRADLE_SWITCHES} build test

publish-snapshots:
needs: [build]
Expand All @@ -45,12 +46,13 @@ jobs:
with:
fetch-depth: 0
- name: set-up-jdk
uses: actions/setup-java@v4.0.0
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
cache: gradle
- name: publish-snapshots
uses: gradle/actions/setup-gradle@v3
if: github.event_name == 'push'
timeout-minutes: 30
run: ./gradlew ${GRADLE_SWITCHES} snapshot
with:
arguments: ${GRADLE_SWITCHES} snapshot
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ jobs:
with:
fetch-depth: 0
- name: set-up-jdk
uses: actions/setup-java@v4.0.0
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
cache: gradle

- name: publish-candidate
if: contains(github.ref, '-rc.')
Expand Down

0 comments on commit e9af292

Please sign in to comment.