Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.

Commit e30492e

Browse files
committed
switch to actions/setup-java@v2
1 parent 6f16ae8 commit e30492e

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

.github/workflows/maven-build.yml

+4-11
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,11 @@ jobs:
2222

2323
# Set up environment with Java and Maven
2424
- name: Setup JDK
25-
uses: actions/setup-java@v1
25+
uses: actions/setup-java@v2
2626
with:
27-
java-version: 1.8
28-
29-
# Set up dependency cache
30-
- name: Cache local Maven repository
31-
uses: actions/cache@v2
32-
with:
33-
path: ~/.m2/repository
34-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
35-
restore-keys: |
36-
${{ runner.os }}-maven-
27+
distribution: temurin
28+
java-version: 8
29+
cache: 'maven'
3730

3831
# Build & verify
3932
- name: Build and verify

.github/workflows/maven-deploy.yml

+4-11
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,11 @@ jobs:
2323

2424
# Set up environment with Java and Maven
2525
- name: Setup JDK
26-
uses: actions/setup-java@v1
26+
uses: actions/setup-java@v2
2727
with:
28-
java-version: 1.8
29-
30-
# Set up dependency cache
31-
- name: Cache local Maven repository
32-
uses: actions/cache@v2
33-
with:
34-
path: ~/.m2/repository
35-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
36-
restore-keys: |
37-
${{ runner.os }}-maven-
28+
distribution: temurin
29+
java-version: 8
30+
cache: 'maven'
3831

3932
# Build, deploy to ossrh, deploy site to Github Pages, generate and stage site
4033
- name: Build, verify, deploy

0 commit comments

Comments
 (0)