File tree Expand file tree Collapse file tree 2 files changed +13
-17
lines changed Expand file tree Collapse file tree 2 files changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -55,27 +55,23 @@ jobs:
5555 distribution : temurin
5656 java-version : 17
5757
58+ - uses : gradle/actions/setup-gradle@v4
59+
5860 - name : build
59- uses : gradle/gradle-build-action@v2
60- with :
61- arguments : |
62- build
63- -PtestJavaVersion=${{ matrix.test-java-version }}
64- -Porg.gradle.java.installations.paths=${{ steps.setup-java-test.outputs.path }},${{ steps.setup-java.outputs.path }}
61+ run : >
62+ ./gradlew
63+ build
64+ -PtestJavaVersion=${{ matrix.test-java-version }}
65+ -Porg.gradle.java.installations.paths=${{ steps.setup-java-test.outputs.path }},${{ steps.setup-java.outputs.path }}
6566
6667 - name : generate
6768 # Skip running on macos-latest which doesn't have docker
6869 if : matrix.os == 'ubuntu-latest'
69- uses : gradle/gradle-build-action@v2
70- with :
71- arguments : |
72- generateSemanticConventions --console=plain
70+ run : ./gradlew generateSemanticConventions --console=plain
71+
7372 # Run spotless after generate to format generated code
7473 - name : spotless
75- uses : gradle/gradle-build-action@v2
76- with :
77- arguments : |
78- spotlessApply
74+ run : ./gradlew spotlessApply
7975
8076 - name : Check for diff
8177 run : |
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ jobs:
2121 distribution : temurin
2222 java-version : 17
2323
24+ - uses : gradle/actions/setup-gradle@v4
25+
2426 - name : Build and publish artifacts
25- uses : gradle/gradle-build-action@v2
26- with :
27- arguments : assemble publishToSonatype closeAndReleaseSonatypeStagingRepository
27+ run : ./gradlew assemble publishToSonatype closeAndReleaseSonatypeStagingRepository
2828 env :
2929 SONATYPE_USER : ${{ secrets.SONATYPE_USER }}
3030 SONATYPE_KEY : ${{ secrets.SONATYPE_KEY }}
You can’t perform that action at this time.
0 commit comments