We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03610a5 commit 0f33242Copy full SHA for 0f33242
.github/workflows/build.yml
@@ -16,18 +16,11 @@ jobs:
16
runs-on: ubuntu-latest
17
steps:
18
- uses: actions/checkout@v2
19
- - uses: actions/setup-java@v1
+ - uses: actions/setup-java@v2
20
with:
21
- java-version: '11.x'
22
- - name: Set cache key
23
- run: |
24
- echo "CACHE_KEY=$(expr $(date +%V) - 1 + 1)" >> $GITHUB_ENV
25
- echo "TIMESTAMP=$(expr $(date +%Y%m%d%H%M%S))" >> $GITHUB_ENV
26
- - uses: actions/cache@v2
27
- with:
28
- path: ~/.m2
29
- key: ${{ runner.os }}-maven-${{ env.CACHE_KEY }}
30
-
+ java-version: '11'
+ distribution: 'adopt'
+ cache: 'maven'
31
- name: Build & Deploy
32
run: |
33
mvn install -e --batch-mode --settings .github/settings.xml --file pom.xml -DtrimStackTrace=false
0 commit comments