File tree Expand file tree Collapse file tree 2 files changed +37
-19
lines changed
Expand file tree Collapse file tree 2 files changed +37
-19
lines changed Original file line number Diff line number Diff line change @@ -20,26 +20,25 @@ jobs:
2020 packages : write
2121
2222 steps :
23- - uses : actions/checkout@v3
24- - name : Set up JDK 11
25- uses : actions/setup-java@v3
23+ - uses : actions/checkout@v4
24+ - name : Set up JDK 17
25+ uses : actions/setup-java@v4
2626 with :
27- java-version : ' 11 '
27+ java-version : ' 17 '
2828 distribution : ' temurin'
2929 server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
3030 settings-path : ${{ github.workspace }} # location for the settings.xml file
3131
32+ - name : Setup Gradle
33+ uses : gradle/actions/setup-gradle@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0
34+
3235 - name : Build with Gradle
33- uses : gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
34- with :
35- arguments : build
36+ run : ./gradlew build
3637
3738 # The USERNAME and TOKEN need to correspond to the credentials environment variables used in
3839 # the publishing section of your build.gradle
3940 - name : Publish to GitHub Packages
40- uses : gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
41- with :
42- arguments : publish
41+ run : ./gradlew publish
4342 env :
4443 USERNAME : ${{ github.actor }}
4544 TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1313 pull_request :
1414 branches : [ $default-branch ]
1515
16- permissions :
17- contents : read
18-
1916jobs :
2017 build :
2118
2219 runs-on : ubuntu-latest
20+ permissions :
21+ contents : read
2322
2423 steps :
25- - uses : actions/checkout@v3
26- - name : Set up JDK 11
27- uses : actions/setup-java@v3
24+ - uses : actions/checkout@v4
25+ - name : Set up JDK 17
26+ uses : actions/setup-java@v4
2827 with :
29- java-version : ' 11 '
28+ java-version : ' 17 '
3029 distribution : ' temurin'
30+
31+ - name : Setup Gradle
32+ uses : gradle/actions/setup-gradle@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0
33+
3134 - name : Build with Gradle
32- uses : gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
35+ run : ./gradlew build
36+
37+ # Optional: Uploads the full dependency graph to GitHub to enable Dependabot alerts
38+ dependency-submission :
39+
40+ runs-on : ubuntu-latest
41+ permissions :
42+ contents : write
43+
44+ steps :
45+ - uses : actions/checkout@v4
46+ - name : Set up JDK 17
47+ uses : actions/setup-java@v4
3348 with :
34- arguments : build
49+ java-version : ' 17'
50+ distribution : ' temurin'
51+
52+ - name : Generate and submit dependency graph
53+ uses : gradle/actions/dependency-submission@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0
You can’t perform that action at this time.
0 commit comments