diff --git a/.github/workflows/build-on-pr.yml b/.github/workflows/build-on-pr.yml index 3144f45..192bffd 100644 --- a/.github/workflows/build-on-pr.yml +++ b/.github/workflows/build-on-pr.yml @@ -19,18 +19,18 @@ jobs: with: distribution: 'temurin' java-version: '21' - - name: Run tests + - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 - with: - arguments: | - --stacktrace - check jacocoTestReport -x :artifact-tests:test + - name: Run tests + run: > + ./gradlew + --stacktrace + check jacocoTestReport -x :artifact-tests:test - name: Test publishing - uses: gradle/actions/setup-gradle@v4 - with: - arguments: | - --stacktrace - publishToMavenLocal + run: > + ./gradlew + --stacktrace + publishToMavenLocal - name: Publish Test Report uses: mikepenz/action-junit-report@v4 if: always() # always run even if the previous step fails @@ -56,12 +56,13 @@ jobs: with: distribution: 'temurin' java-version: '21' - - name: Run artifact tests + - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 - with: - arguments: | - --stacktrace - :artifact-tests:check + - name: Run artifact tests + run: > + ./gradlew + --stacktrace + :artifact-tests:check - name: Publish Test Report uses: mikepenz/action-junit-report@v4 if: always() # always run even if the previous step fails @@ -86,12 +87,13 @@ jobs: with: distribution: 'temurin' java-version: '21' - - name: Publish plugin + - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 - with: - arguments: | - -Pversion=SNAPSHOT-${{ github.sha }} - assemble publishAllPublicationsToSnapshotRepository + - name: Publish plugin + run: > + ./gradlew + -Pversion=SNAPSHOT-${{ github.sha }} + assemble publishAllPublicationsToSnapshotRepository env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Snapshot coordinates comment diff --git a/.github/workflows/build-on-push-to-main.yml b/.github/workflows/build-on-push-to-main.yml index 291d68d..5e1c2cf 100644 --- a/.github/workflows/build-on-push-to-main.yml +++ b/.github/workflows/build-on-push-to-main.yml @@ -19,18 +19,18 @@ jobs: with: distribution: 'temurin' java-version: '21' - - name: Run tests + - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 - with: - arguments: | - --stacktrace - check jacocoTestReport -x :artifact-tests:test + - name: Run tests + run: > + ./gradlew + --stacktrace + check jacocoTestReport -x :artifact-tests:test - name: Test publishing - uses: gradle/actions/setup-gradle@v4 - with: - arguments: | - --stacktrace - publishToMavenLocal + run: > + ./gradlew + --stacktrace + publishToMavenLocal - name: Publish Test Report uses: mikepenz/action-junit-report@v4 if: always() # always run even if the previous step fails @@ -56,12 +56,13 @@ jobs: with: distribution: 'temurin' java-version: '21' - - name: Run artifact tests + - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 - with: - arguments: | - --stacktrace - :artifact-tests:check + - name: Run artifact tests + run: > + ./gradlew + --stacktrace + :artifact-tests:check - name: Publish Test Report uses: mikepenz/action-junit-report@v4 if: always() # always run even if the previous step fails diff --git a/.github/workflows/publish-on-release.yml b/.github/workflows/publish-on-release.yml index 8681428..6b06bde 100644 --- a/.github/workflows/publish-on-release.yml +++ b/.github/workflows/publish-on-release.yml @@ -2,7 +2,7 @@ name: Publish plugin on release on: release: - types: [published] + types: [ published ] jobs: build: @@ -16,12 +16,13 @@ jobs: with: distribution: 'temurin' java-version: '21' - - name: Run tests + - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 - with: - arguments: | - --stacktrace - check -x :artifact-tests:test + - name: Run tests + run: > + ./gradlew + --stacktrace + check -x :artifact-tests:test - name: Publish Test Report uses: mikepenz/action-junit-report@v4 if: always() # always run even if the previous step fails @@ -42,12 +43,13 @@ jobs: with: distribution: 'temurin' java-version: '21' - - name: Run artifact tests + - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 - with: - arguments: | - --stacktrace - :artifact-tests:check + - name: Run artifact tests + run: > + ./gradlew + --stacktrace + :artifact-tests:check - name: Publish Test Report uses: mikepenz/action-junit-report@v4 if: always() # always run even if the previous step fails @@ -70,8 +72,9 @@ jobs: with: distribution: 'temurin' java-version: '21' - - name: Publish plugin + - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 + - name: Publish plugin env: ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.OSSRH_GPG_SECRET_KEY_ID }} ORG_GRADLE_PROJECT_signingKey: ${{ secrets.OSSRH_GPG_SECRET_KEY }} @@ -79,13 +82,13 @@ jobs: ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_USERNAME }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_PASSWORD }} ORG_GRADLE_PROJECT_withSigning: true - with: - arguments: | - -Pversion=${{ github.event.release.tag_name }} - -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} - -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} - --stacktrace - assemble publishToSonatype closeAndReleaseSonatypeStagingRepository publishPlugins + run: > + ./gradlew + -Pversion=${{ github.event.release.tag_name }} + -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} + -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} + --stacktrace + assemble publishToSonatype closeAndReleaseSonatypeStagingRepository publishPlugins - name: Attach artifacts to the release uses: svenstaro/upload-release-action@v2 with: