github/workflow: update java versions for build and deploy

commit-id:22cd2011
This commit is contained in:
Paul Campbell 2022-10-12 07:06:32 +01:00
parent 8379dbf02b
commit 4bde3af664
2 changed files with 6 additions and 4 deletions

View file

@ -11,13 +11,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
java: [ 11, 16, 17-ea ] # only needs to be able to run builder module, other outputs are xml
# latest-lts
java: [ 17 ]
steps: steps:
- uses: actions/checkout@v3.1.0 - uses: actions/checkout@v3.1.0
- name: setup-jdk-${{ matrix.java }} - name: setup-jdk-${{ matrix.java }}
uses: actions/setup-java@v2.3.0 uses: actions/setup-java@v2.3.0
with: with:
distribution: 'adopt' distribution: 'temurin'
java-version: ${{ matrix.java }} java-version: ${{ matrix.java }}
cache: maven cache: maven
- name: build-jar - name: build-jar

View file

@ -13,8 +13,8 @@ jobs:
- name: Set up JDK - name: Set up JDK
uses: actions/setup-java@v2.3.0 uses: actions/setup-java@v2.3.0
with: with:
distribution: 'adopt' distribution: 'temurin'
java-version: 11 java-version: 17
cache: maven cache: maven
- name: Build with Maven - name: Build with Maven
run: mvn -B install run: mvn -B install