Repository navigation
Update CI build from Java 19 to Java 27 (and devcontainer to Java 25) - #675
Merged
Merged
Conversation
Since JDK 23 javac no longer runs annotation processors found on the classpath by default (JDK-8321314, default changed from -proc:full to -proc:none). The build on Java 19 still worked, but on Java 25/27 Lombok was not executed and compilation failed with "cannot find symbol" for all generated getters and constructors. Declare Lombok and spring-boot-configuration-processor explicitly via annotationProcessorPaths of the maven-compiler-plugin, as recommended by Lombok. Versions are resolved from the Spring Boot dependency management. This keeps working on the Java 17 baseline. https://bugs.openjdk.org/browse/JDK-8321314 https://projectlombok.org/setup/maven https://docs.spring.io/spring-boot/specification/configuration-metadata/annotation-processor.html
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.
What:
Build the additional CI job with Java 27 instead of Java 19 and update the devcontainer from Java 17 to Java 25. Java 17 stays the baseline (matches the Spring Boot Java baseline).
Why:
Java 19 is long out of support; we want to make sure Chaos Monkey compiles and passes its tests on current JDKs.
While doing so, the build failed on symbol
errors for all Lombok-generated getters/constructors. Since JDK 23, javac no longer runs annotation processors that are only found on the classpath — the default changed from-proc:fullto-proc:none`(JDK-8321314). That's why Java 19 still worked.
How:
.github/workflows/push.yml: addi 19→java: 27`chaos-monkey-spring-boot/pom.xmlng-boot-configuration-processorexplicitly viaannotationProcessorPathsof themaven-compiler-plugin`, as recommended by Lombok (mandatory starting with JDK 23). Versions areresolved from the Spring Boot depend
.devcontainer/devcontainer.json:5`Verified locally (
spotless:check+verify) ineclipse-temurincontainers with Java 17, 25 and 27.