From a863704bc42677be335d472fe8a4139e32f3f8cf Mon Sep 17 00:00:00 2001 From: Werner Randelshofer Date: Sat, 17 Aug 2024 22:38:39 +0200 Subject: [PATCH] Use Java 21 in github workflows. --- .github/workflows/codeql.yml | 4 ++-- .github/workflows/maven-publish.yml | 4 ++-- .github/workflows/maven.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index b6133d3..c1e92a2 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -42,11 +42,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Setup Java 17 + - name: Setup Java 21 uses: actions/setup-java@v3 with: distribution: "temurin" - java-version: "17" + java-version: "21" # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index d91a9b1..6e43a15 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -17,10 +17,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v3 with: - java-version: '17' + java-version: '21' distribution: 'temurin' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c5f4b9d..72284a1 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest ] - java: [ 17 ] + java: [ 21 ] arch: [ x64 ] dist: [ zulu ] fail-fast: false