Skip to content

Commit f7018ae

Browse files
authoredMay 20, 2021
Several refinements
fetch full repo history, needed for Changelog switch to java11, it's current stable and we compile to java8 anyway enable maven dependency caching for speed
1 parent 3de9c3a commit f7018ae

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed
 

‎.github/workflows/maven.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,18 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v2
19-
- name: Set up JDK 1.8
20-
uses: actions/setup-java@v1
2119
with:
22-
java-version: 1.8
20+
fetch-depth: 0
21+
- name: Set up JDK 11
22+
uses: actions/setup-java@v2
23+
with:
24+
java-version: '11'
25+
distribution: 'adopt'
26+
- name: Cache Maven packages
27+
uses: actions/cache@v2
28+
with:
29+
path: ~/.m2
30+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
31+
restore-keys: ${{ runner.os }}-m2
2332
- name: Build with Maven
24-
run: mvn -B package --file pom.xml
33+
run: mvn -B package -P snapshot

0 commit comments

Comments
 (0)
Please sign in to comment.