File tree Expand file tree Collapse file tree 2 files changed +7
-37
lines changed Expand file tree Collapse file tree 2 files changed +7
-37
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- # This workflow will build a Java project with Maven
1+ # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
22# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
33
44name : Java CI with Maven
@@ -16,15 +16,17 @@ jobs:
1616
1717 steps :
1818 - uses : actions/checkout@v2
19- - name : Set up JDK 1.8
20- uses : actions/setup-java@v1
19+ - name : Set up JDK 11
20+ uses : actions/setup-java@v2
2121 with :
22- java-version : 1.8
22+ java-version : ' 11'
23+ distribution : ' adopt'
24+ cache : maven
2325 server-id : github
2426 server-username : GITHUB_USER_REF
2527 server-password : GITHUB_TOKEN_REF
2628 - name : Build with Maven
2729 env :
2830 GITHUB_USER_REF : ${{ secrets.GH_PACKAGE_REPO_USERNAME }}
2931 GITHUB_TOKEN_REF : ${{ secrets.GH_PACKAGE_REPO_PASSWORD }}
30- run : mvn clean install -s settings.xml -B package --file pom.xml -X
32+ run : mvn -s settings.xml -B package --file pom.xml
You can’t perform that action at this time.
0 commit comments