File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 1- # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2- # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3-
41name : build-with-maven
52
63on :
118
129jobs :
1310 build :
14-
1511 runs-on : ubuntu-latest
1612
1713 steps :
2117 with :
2218 java-version : ' 21'
2319 distribution : ' temurin'
24- cache : maven
20+ - name : Cache Maven packages
21+ uses : actions/cache@v3
22+ with :
23+ path : ~/.m2/repository
24+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
25+ restore-keys : |
26+ ${{ runner.os }}-maven-
27+ ${{ runner.os }}-
2528 - name : Build with Maven
26- run : ./mvnw clean package -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -B -V -U --file pom.xml
29+ run : ./mvnw clean package -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -B -V -U --file pom.xml
You can’t perform that action at this time.
0 commit comments