Repository navigation
Conversation
The CI job "build" set up JDK 11, but every module declares java.version 21 (source/target 21). Maven failed at compile with "invalid target release: 21". Align setup-java with java.version 21, as the existing "Java CI with Maven" workflow already does. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Причина
Job
buildв workflowCI(.github/workflows/ci.yml) ставит JDK 11 черезsetup-java(java-version: '11'). Все модули проекта требуют Java 21:java.version21 в корневомpom.xml,source/target21 в модулях. Maven падает на компиляции:Тот же код на JDK 21 собирается в workflow
Java CI with Maven(maven.yml), который на SHAf4a1a6fпроходит.Изменение
.github/workflows/ci.yml: шагSet up JDK 11→Set up JDK 21,java-version: '11'→'21'. Других изменений нет. Тесты, coverage, пороги и проверки не отключались,allow_failureне добавлялся.Проверки
mvn -B clean verifyна JDK 11 воспроизводит ошибку выше (BUILD FAILURE).mvn -B clean verifyна JDK 21 (Ubuntu OpenJDK 21): BUILD SUCCESS, все модули SUCCESS, 214 тестов, 0 падений.CIпо событиюpull_request).🤖 Generated with Claude Code