Skip to content

Commit fca022d

Browse files
committed
e update setup-java in github actions to v3
1 parent 4e81ba5 commit fca022d

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/formatJava.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v3
9-
- uses: actions/setup-java@v2
9+
- uses: actions/setup-java@v3
1010
with:
11-
distribution: 'zulu' # See 'Supported distributions' for available options
12-
java-version: '11'
11+
distribution: 'zulu'
12+
java-version: '17'
1313
- name: Format Code
1414
run: mvn package -DskipTests=true
1515
- name: Push changes

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ jobs:
1212
uses: actions/checkout@v3
1313

1414
- name: Install Java and Maven
15-
uses: actions/setup-java@v1
15+
uses: actions/setup-java@v3
1616
with:
17-
java-version: 8
17+
distribution: 'zulu'
18+
java-version: '8'
1819

1920
- name: Determine version from git tag
2021
id: version

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ jobs:
2525
restore-keys: |
2626
${{ runner.os }}-maven-
2727
- name: Set up JDK
28-
uses: actions/setup-java@v1
28+
uses: actions/setup-java@v3
2929
with:
30+
distribution: 'zulu'
3031
java-version: ${{ matrix.java }}
3132
- name: Build with Maven
3233
run: mvn -B verify --file pom.xml

0 commit comments

Comments
 (0)