diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b42686..f2d31f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,27 +55,23 @@ jobs: distribution: temurin java-version: 17 + - uses: gradle/actions/setup-gradle@v4 + - name: build - uses: gradle/gradle-build-action@v2 - with: - arguments: | - build - -PtestJavaVersion=${{ matrix.test-java-version }} - -Porg.gradle.java.installations.paths=${{ steps.setup-java-test.outputs.path }},${{ steps.setup-java.outputs.path }} + run: > + ./gradlew + build + -PtestJavaVersion=${{ matrix.test-java-version }} + -Porg.gradle.java.installations.paths=${{ steps.setup-java-test.outputs.path }},${{ steps.setup-java.outputs.path }} - name: generate # Skip running on macos-latest which doesn't have docker if: matrix.os == 'ubuntu-latest' - uses: gradle/gradle-build-action@v2 - with: - arguments: | - generateSemanticConventions --console=plain + run: ./gradlew generateSemanticConventions --console=plain + # Run spotless after generate to format generated code - name: spotless - uses: gradle/gradle-build-action@v2 - with: - arguments: | - spotlessApply + run: ./gradlew spotlessApply - name: Check for diff run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3963361..2988083 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,10 +21,10 @@ jobs: distribution: temurin java-version: 17 + - uses: gradle/actions/setup-gradle@v4 + - name: Build and publish artifacts - uses: gradle/gradle-build-action@v2 - with: - arguments: assemble publishToSonatype closeAndReleaseSonatypeStagingRepository + run: ./gradlew assemble publishToSonatype closeAndReleaseSonatypeStagingRepository env: SONATYPE_USER: ${{ secrets.SONATYPE_USER }} SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}