From 1c2249ac392b183815336f8bec9d6bd0666ea7e4 Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Mon, 24 Aug 2026 15:03:59 +0200 Subject: [PATCH] ci: pin google-java-format to 2.2.0 for JDK 21 compatibility google-java-format npm package v2.3.0 is incompatible with JDK 21, causing JCTree$JCAnyPattern ClassNotFoundException. Pin to v2.2.0 which works correctly with JDK 21. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ec012c0..597e05e 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -34,7 +34,7 @@ jobs: distribution: "temurin" - name: Install and run linter over tests run: | - npm install google-java-format@2.3.0 + npm install google-java-format@2.2.0 npx google-java-format --set-exit-if-changed -i $(git ls-files src/test/\*.java) - name: Cache local Maven repository uses: actions/cache@v4