Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt gradle/actions/setup-gradle #43

Merged
merged 2 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: ${{ env.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: ${{ env.GRADLE_SWITCHES }} snapshot
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,21 @@ 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
uses: gradle/actions/setup-gradle@v3
if: contains(github.ref, '-rc.')
timeout-minutes: 30
run: ./gradlew ${GRADLE_SWITCHES} -Preleasing -Prelease.disableGitChecks=true -Prelease.useLastTag=true candidate publish
with:
arguments: ${{ env.GRADLE_SWITCHES }} -Preleasing -Prelease.disableGitChecks=true -Prelease.useLastTag=true candidate publish

- name: publish-release
uses: gradle/actions/setup-gradle@v3
if: (!contains(github.ref, '-rc.'))
timeout-minutes: 30
run: ./gradlew ${GRADLE_SWITCHES} -Preleasing -Prelease.disableGitChecks=true -Prelease.useLastTag=true final publish
with:
arguments: ${{ env.GRADLE_SWITCHES }} -Preleasing -Prelease.disableGitChecks=true -Prelease.useLastTag=true final publish