Improve GitHub Actions configuration
Upgrade 'actions/setup-java' to version 2, and specify the Eclipse
Temurin distribution. Eclipse Temurin is produced by the Eclipse
Adoptium project, a continuation of the AdoptOpenJDK project.
@@ -21,8 +21,9 @@ jobs:
- name: Check out GitHub repository
uses: actions/checkout@v2
- name: Set up Java
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: 'temurin'
java-version: ${{ matrix.java-version }}
- name: Cache Maven repository
uses: actions/cache@v1
