From ec6065b6de8eaa030b7da611cd6800f195dbcc26 Mon Sep 17 00:00:00 2001 From: Chris Laprun Date: Thu, 4 Jul 2024 12:10:54 +0200 Subject: [PATCH] chore: update to Java 21 --- .github/workflows/maven.yml | 9 ++++++--- .github/workflows/native-build.yml | 4 ++-- .github/workflows/release.yml | 6 +++--- pom.xml | 4 ++-- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ef402c3..5efbc5c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -20,15 +20,18 @@ concurrency: jobs: build: - - runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + os: [ ubuntu-latest, macOS-latest, macos-14 ] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - name: Set up JDK 17 uses: actions/setup-java@v4 with: - java-version: '17' + java-version: '21' distribution: 'temurin' cache: maven - name: Build with Maven diff --git a/.github/workflows/native-build.yml b/.github/workflows/native-build.yml index 74b8360..b841cc3 100644 --- a/.github/workflows/native-build.yml +++ b/.github/workflows/native-build.yml @@ -19,12 +19,12 @@ jobs: - uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 17 + java-version: '21' cache: 'maven' - uses: graalvm/setup-graalvm@v1 with: - java-version: '17' + java-version: '21' distribution: 'graalvm' github-token: ${{ secrets.GITHUB_TOKEN }} native-image-job-reports: 'true' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d436b1d..7cbc2d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: - uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 17 + java-version: '21' cache: 'maven' server-id: central server-username: MAVEN_USERNAME @@ -76,12 +76,12 @@ jobs: - uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 17 + java-version: '21' cache: 'maven' - uses: graalvm/setup-graalvm@v1 with: - java-version: '17' + java-version: '21' distribution: 'graalvm' github-token: ${{ secrets.GITHUB_TOKEN }} native-image-job-reports: 'true' diff --git a/pom.xml b/pom.xml index 608f9a2..125d626 100644 --- a/pom.xml +++ b/pom.xml @@ -39,7 +39,7 @@ 3.13.0 - 17 + 21 UTF-8 UTF-8 quarkus-bom @@ -186,7 +186,7 @@ ${formatter-plugin.version} - 17 + eclipse-format.xml LF ${format.skip}