Skip to content

fix(ci): use JDK 21 for CodeQL analysis#14

Merged
marevol merged 1 commit into
mainfrom
fix/codeql-jdk21
Jun 13, 2026
Merged

fix(ci): use JDK 21 for CodeQL analysis#14
marevol merged 1 commit into
mainfrom
fix/codeql-jdk21

Conversation

@marevol

@marevol marevol commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Problem

The CodeQL Analyze (java) job fails during the autobuild step:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.15.0:compile
(default-compile) on project fess-script-ognl: Fatal error compiling:
error: release version 21 not supported

The project requires Java 21 (release version 21 via fess-parent), but
.github/workflows/codeql-analysis.yml sets up JDK 17, so the autobuild
fails to compile. The regular build (maven.yml) already uses JDK 21.

This blocks the CodeQL check on PRs (e.g. #13).

Fix

Align the CodeQL workflow's setup-java version with maven.yml (JDK 17 -> 21).

Only the CI workflow is changed; no source or behavior changes.

The project requires Java 21 (release version 21 via fess-parent), but the
CodeQL workflow set up JDK 17, causing the autobuild step to fail with
"error: release version 21 not supported". Align the CodeQL setup-java
version with maven.yml (JDK 21).
@marevol marevol merged commit 8bcaeda into main Jun 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant