diff --git a/.github/workflows/build-maven.yml b/.github/workflows/build-maven.yml index 0da4ffc..f4c6b40 100644 --- a/.github/workflows/build-maven.yml +++ b/.github/workflows/build-maven.yml @@ -11,13 +11,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [ 8, 11, 15 ] + java: [ 8, 11, 16 ] steps: - uses: kamiazya/setup-graphviz@v1 - uses: actions/checkout@v2 - name: setup-jdk-${{ matrix.java }} - uses: actions/setup-java@v1 + uses: actions/setup-java@v2.1.0 with: + distribution: 'adopt' java-version: ${{ matrix.java }} - name: build-jar run: mvn -B install diff --git a/.github/workflows/deploy-sonatype.yml b/.github/workflows/deploy-sonatype.yml index ff7cfef..b5ba18e 100644 --- a/.github/workflows/deploy-sonatype.yml +++ b/.github/workflows/deploy-sonatype.yml @@ -13,8 +13,9 @@ jobs: - uses: kamiazya/setup-graphviz@v1 - uses: actions/checkout@v2 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v2.1.0 with: + distribution: 'adopt' java-version: 8 - name: Build with Maven run: mvn -B install