Skip to content

Commit

Permalink
Merge pull request #1958 from AxonFramework/add-java17-on-build
Browse files Browse the repository at this point in the history
Added java 17 to the main build
  • Loading branch information
smcvb committed Sep 29, 2021
2 parents 306f0b1 + 8e43f2e commit c6b610d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
name: Test and Build on JDK ${{ matrix.java-version }}

runs-on: ubuntu-latest
continue-on-error: true # do not fail the whole job if one of the steps fails

strategy:
matrix:
Expand All @@ -22,27 +23,24 @@ jobs:
- java-version: 11
sonar-enabled: true
deploy: false
- java-version: 17
sonar-enabled: false
deploy: false

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v1.4.3
uses: actions/setup-java@v2.2.0
with:
distribution: 'zulu'
cache: 'maven'
java-version: ${{ matrix.java-version }}
server-id: sonatype
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

- name: Cache .m2
uses: actions/cache@v2.1.3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven
- name: Maven operation with Sonar
if: matrix.sonar-enabled
run: |
Expand Down

0 comments on commit c6b610d

Please sign in to comment.