Skip to content
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
21 changes: 9 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,29 +61,26 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}

- name: Spotless Check
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ github.event_name != 'push' || github.ref != 'refs/heads/main' }}

- name: Spotless Check
# Spotless must run in a different invocation, because
# it has some weird Gradle configuration/variant issue
arguments: spotlessCheck --scan
run: ./gradlew spotlessCheck --scan

- name: Build with Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: --rerun-tasks assemble ${{ env.ADDITIONAL_GRADLE_OPTS }} check publishToMavenLocal -x jmh -x spotlessCheck --scan
- name: Build
run: ./gradlew --rerun-tasks assemble ${{ env.ADDITIONAL_GRADLE_OPTS }} check publishToMavenLocal -x jmh -x spotlessCheck --scan

- name: Build tool integrations
# The buildToolIntegration* tasks require publishToMavenLocal, run it as a separate step,
# because these tasks intentionally do not depend on the publishToMavenLocal tasks.
uses: gradle/actions/setup-gradle@v3
with:
arguments: buildToolIntegrations
run: ./gradlew buildToolIntegrations

- name: Microbenchmarks
uses: gradle/actions/setup-gradle@v3
with:
arguments: jmh
run: ./gradlew jmh

- name: Cache Bazel stuff
if: ${{ matrix.java-version == '11' }}
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,18 @@ jobs:
git commit -a -m "[release] v${RELEASE_VERSION}"
git tag -f ${GIT_TAG}

- name: Publish to Sonatype
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: true

- name: Publish to Sonatype
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_ACCESS_ID }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_TOKEN }}
with:
cache-read-only: true
arguments: --rerun-tasks --no-watch-fs assemble check publishToMavenLocal -x jmh publishToSonatype closeAndReleaseSonatypeStagingRepository -Prelease
run: ./gradlew --rerun-tasks --no-watch-fs assemble check publishToMavenLocal -x jmh publishToSonatype closeAndReleaseSonatypeStagingRepository -Prelease

- name: Bump to next development version
run: echo "${NEXT_VERSION}-SNAPSHOT" > version.txt
Expand Down