From 1caeab5e82720bc740519c60dafaac6fc931ae7c Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Thu, 13 Aug 2026 16:39:55 +0200 Subject: [PATCH 1/2] fix: upgrade google-java-format and use JDK 21 for linting google-java-format now requires JDK 21 to run. Updated the CI workflow to: - Use JDK 21 (temurin) for the linting step - Upgrade google-java-format from 1.4.0 to 2.3.0 - Set up JDK 17 after linting for the build/tests Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/maven.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 00b6959..1782106 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,15 +27,20 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up JDK 17 + - name: Set up JDK 21 for linter uses: actions/setup-java@v4 with: - java-version: "17" - distribution: "adopt" + java-version: "21" + distribution: "temurin" - name: Install and run linter over tests run: | - npm install google-java-format@1.4.0 + npm install google-java-format@2.3.0 npx google-java-format --set-exit-if-changed -i $(git ls-files src/test/\*.java) + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: "17" + distribution: "adopt" - name: Cache local Maven repository uses: actions/cache@v4 with: From 1e41fd6c1b5b23a8f761628127e450afab61e90b Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Thu, 13 Aug 2026 17:19:46 +0200 Subject: [PATCH 2/2] ci: use JDK 21 for entire CI workflow The project compiles to Java 1.8 bytecode, so running on JDK 21 is fully compatible. This simplifies the workflow by using a single JDK version and aligns with the google-java-format requirement for JDK 21. JDK 17 EOL is October 2027; JDK 21 (LTS) is supported until 2029. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/maven.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1782106..ec012c0 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up JDK 21 for linter + - name: Set up JDK 21 uses: actions/setup-java@v4 with: java-version: "21" @@ -36,11 +36,6 @@ jobs: run: | npm install google-java-format@2.3.0 npx google-java-format --set-exit-if-changed -i $(git ls-files src/test/\*.java) - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: "17" - distribution: "adopt" - name: Cache local Maven repository uses: actions/cache@v4 with: