diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42aa4d4..e3b810d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,35 +26,12 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: gradle/actions/wrapper-validation@v3 - - name: set-up-jdk - uses: actions/setup-java@v4 + - uses: actions/setup-java@v4 with: distribution: zulu java-version: 17 + - uses: gradle/actions/setup-gradle@v4 - name: build - uses: gradle/actions/setup-gradle@v3 - with: - arguments: ${{ env.GRADLE_SWITCHES }} build test + run: ./gradlew ${{ env.GRADLE_SWITCHES }} build test - name: verify run: mvn --show-version --no-transfer-progress --update-snapshots --fail-at-end --batch-mode -Dstyle.color=always verify - - publish-snapshots: - needs: [build] - runs-on: ubuntu-latest - if: github.event_name == 'push' - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: set-up-jdk - uses: actions/setup-java@v4 - with: - distribution: zulu - java-version: 17 - - name: publish-snapshots - uses: gradle/actions/setup-gradle@v3 - if: github.event_name == 'push' - timeout-minutes: 30 - with: - arguments: ${{ env.GRADLE_SWITCHES }} snapshot diff --git a/.github/workflows/receive-pr.yml b/.github/workflows/receive-pr.yml index 871abec..820c7ea 100644 --- a/.github/workflows/receive-pr.yml +++ b/.github/workflows/receive-pr.yml @@ -27,11 +27,11 @@ jobs: with: ref: ${{github.event.pull_request.head.ref}} repository: ${{github.event.pull_request.head.repo.full_name}} - - uses: gradle/actions/wrapper-validation@v3 - uses: actions/setup-java@v4 with: java-version: '21' distribution: 'temurin' + - uses: gradle/actions/setup-gradle@v4 # Capture the PR number # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow @@ -46,9 +46,7 @@ jobs: # Execute recipes - name: Apply OpenRewrite best practices - uses: gradle/actions/setup-gradle@v3 - with: - arguments: ${{ env.GRADLE_SWITCHES }} rewriteRun -Drewrite.activeRecipe=org.openrewrite.recipes.OpenRewriteBestPractices + run: ./gradlew ${{ env.GRADLE_SWITCHES }} rewriteRun -Drewrite.activeRecipe=org.openrewrite.recipes.OpenRewriteBestPractices # Capture the diff - name: Create patch diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index e1c1f06..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,39 +0,0 @@ ---- -name: publish - -on: - push: - tags: - - v[0-9]+.[0-9]+.[0-9]+ - - v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+ - -env: - GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"' - GRADLE_SWITCHES: "-s --console=plain --info --stacktrace" - -jobs: - release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: set-up-jdk - uses: actions/setup-java@v4 - with: - distribution: zulu - java-version: 17 - - - name: publish-candidate - uses: gradle/actions/setup-gradle@v3 - if: contains(github.ref, '-rc.') - timeout-minutes: 30 - 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 - with: - arguments: ${{ env.GRADLE_SWITCHES }} -Preleasing -Prelease.disableGitChecks=true -Prelease.useLastTag=true final publish