@@ -10,38 +10,38 @@ name: Java CI with Maven
1010
1111on :
1212 push :
13- branches : [ "main" ]
13+ branches : ["main"]
1414 pull_request :
15- branches : [ "main" ]
15+ branches : ["main"]
1616
1717jobs :
1818 build :
1919 runs-on : ubuntu-latest
2020
2121 steps :
22- - uses : actions/checkout@v4
23- env :
24- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25-
26- - name : Set up JDK 23
27- # TODO: Switch back to actions/setup-java@v4 once they support JDK 23 for temurin
28- # uses: actions/setup-java@v4 # https://github.com/actions/setup-java
29- # with:
30- # java-version: '23'
31- # distribution: 'temurin'
32- # cache: maven
33- uses : oracle-actions/setup-java@v1 # https://github.com/oracle-actions/setup-java
34- with :
35- website : jdk.java.net
36- release : 23
37-
38- - name : Print Java version
39- run : java -version
40-
41- - name : Verify and Package with Maven
42- run : ./mvnw --batch-mode --file pom.xml verify package
43-
44- # Upload the full dependency graph to GitHub to improve the quality of
45- # Dependabot alerts this repository can receive.
46- - name : Submit Dependency Snapshot
47- uses : advanced-security/maven-dependency-submission-action@v4
22+ - uses : actions/checkout@v4
23+ env :
24+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25+
26+ - name : Set up JDK 23
27+ # TODO: Switch back to actions/setup-java@v4 once they support JDK 23 for temurin
28+ # uses: actions/setup-java@v4 # https://github.com/actions/setup-java
29+ # with:
30+ # java-version: '23'
31+ # distribution: 'temurin'
32+ # cache: maven
33+ uses : oracle-actions/setup-java@v1 # https://github.com/oracle-actions/setup-java
34+ with :
35+ website : jdk.java.net
36+ release : 23
37+
38+ - name : Print Java version
39+ run : java -version
40+
41+ - name : Verify and Package with Maven
42+ run : ./mvnw --batch-mode --file pom.xml verify package
43+
44+ # Upload the full dependency graph to GitHub to improve the quality of
45+ # Dependabot alerts this repository can receive.
46+ - name : Submit Dependency Snapshot
47+ uses : advanced-security/maven-dependency-submission-action@v4
0 commit comments