Skip to content

Commit 847a5f6

Browse files
authored
Using Zulu builds of OpenJDK in GH actions
The AdoptOpenJDK has been discontinued Since July 2021. When using Zulu you get all the latest updated builds for all versions of OpenJDK. Also, I've added a matrix to later add JDK 17 (next LTS release). Gradle doesn't support JDK early access releases. When using Maven you could add 17-ea.
1 parent 42191f9 commit 847a5f6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/checkstyle.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ on: [pull_request]
44
jobs:
55
build:
66
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
java-version: [ 11 ]
710
steps:
811
- uses: actions/checkout@v2
912

10-
- name: Set up JDK 11
13+
- name: Set up JDK ${{ matrix.java-version }}
1114
uses: actions/setup-java@v2
1215
with:
13-
java-version: '11'
14-
distribution: 'adopt'
16+
java-version: ${{ matrix.java-version }}
17+
distribution: 'zulu'
1518

1619
- name: Check style and license headers
1720
run: |

0 commit comments

Comments
 (0)