From 670990c7ed9242a0ab9d57972b19ba11332ca350 Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Mon, 12 Oct 2026 12:23:13 +0000 Subject: [PATCH] Test JDK 27 instead of 26 JDK 26 is out of support now that 27 is released. Spotless is skipped on the JDK 27 jobs only: palantir-java-format crashes there until palantir/palantir-java-format#1786 is released. --- .github/workflows/maven.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 967d154a39f8..87aed6441d6d 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -147,7 +147,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - java: ['17', '25', '26'] + java: ['17', '25', '27'] steps: - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 @@ -219,7 +219,8 @@ jobs: - name: Build with downloaded Maven shell: bash - run: mvn verify -Papache-release -Dgpg.skip=true -e -B -V + # palantir-java-format crashes on JDK 27 (palantir/palantir-java-format#1786); drop the skip once a fixed release is in maven-parent + run: mvn verify -Papache-release -Dgpg.skip=true -e -B -V ${{ matrix.java == '27' && '-Dspotless.skip=true' || '' }} - name: Build site with downloaded Maven shell: bash @@ -260,7 +261,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - java: ['17', '25', '26'] + java: ['17', '25', '27'] steps: - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 @@ -320,7 +321,8 @@ jobs: - name: Build Maven and ITs and run them shell: bash - run: mvn install -e -B -V -Prun-its,mimir + # palantir-java-format crashes on JDK 27 (palantir/palantir-java-format#1786); drop the skip once a fixed release is in maven-parent + run: mvn install -e -B -V -Prun-its,mimir ${{ matrix.java == '27' && '-Dspotless.skip=true' || '' }} - name: Upload Mimir caches uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1