diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 631615bbe79..a9a93d4e511 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,9 +47,10 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - name: 'Set up JDK ${{ matrix.java }}' - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: java-version: ${{ matrix.java }} + distribution: 'adopt' - name: 'Install' shell: bash run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V @@ -76,9 +77,10 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - name: 'Set up JDK 8' - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: java-version: 8 + distribution: 'adopt' server-id: sonatype-nexus-snapshots server-username: CI_DEPLOY_USERNAME server-password: CI_DEPLOY_PASSWORD @@ -104,9 +106,10 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - name: 'Set up JDK 15' - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: java-version: 15 + distribution: 'adopt' - name: 'Generate latest docs' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}