File tree Expand file tree Collapse file tree 3 files changed +20
-17
lines changed Expand file tree Collapse file tree 3 files changed +20
-17
lines changed Original file line number Diff line number Diff line change 33# SPDX-License-Identifier: Apache-2.0
44
55# This workflow will publish a Java project with Gradle
6- # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-java-packages-with-gradle
6+ # For gradle wrapper validation see: https://github.com/marketplace/actions/gradle-wrapper-validation
7+ # For gradle build see: https://github.com/marketplace/actions/gradle-build-action
78
89name : Publish Snapshot to Maven Central
910
@@ -22,13 +23,13 @@ jobs:
2223 with :
2324 java-version : 17
2425 distribution : adopt
25- - name : Validate Gradle wrapper
26- uses : gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
27- - name : Publish to Maven Central
28- uses : gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
29- with :
30- arguments : publish
31- env :
32- MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
33- MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
34- DD_CLIENT_VERSION : ${{ github.event.release.tag_name }}
26+ - name : Validate Gradle wrapper
27+ uses : gradle/wrapper-validation-action@v1.1.0
28+ - name : Setup Gradle
29+ uses : gradle/gradle-build-action@v2.7.0
30+ - name : Publish to Maven Central
31+ run : ./gradlew publish
32+ env :
33+ MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
34+ MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
35+ DD_CLIENT_VERSION : ${{ github.event.release.tag_name }}
Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ jobs:
2222 java-version : 17
2323 distribution : adopt
2424 - name : Validate Gradle wrapper
25- uses : gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
25+ uses : gradle/wrapper-validation-action@v1.1.0
26+ - name : Setup Gradle
27+ uses : gradle/gradle-build-action@v2.7.0
2628 - name : Publish to Maven Central
27- uses : gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
28- with :
29- arguments : publish
29+ run : ./gradlew publish
3030 env :
3131 MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
3232 MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
Original file line number Diff line number Diff line change 1818 with :
1919 java-version : 17
2020 distribution : adopt
21- - name : Grant execute permission for gradlew
22- run : chmod +x gradlew
21+ - name : Validate Gradle wrapper
22+ uses : gradle/wrapper-validation-action@v1.1.0
23+ - name : Setup Gradle
24+ uses : gradle/gradle-build-action@v2.7.0
2325 - name : Build with Gradle
2426 run : ./gradlew build
You can’t perform that action at this time.
0 commit comments