Skip to content

Update CI build from Java 19 to Java 27 (and devcontainer to Java 25) - #675

Merged
WtfJoke merged 2 commits into
mainfrom
buildjava25
Oct 30, 2026
Merged

WtfJoke merged 2 commits into
mainfrom
buildjava25

Conversation

@WtfJoke

@WtfJoke WtfJoke commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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 symbolerrors 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 via annotationProcessorPathsof themaven-compiler-plugin`, as recommended by Lombok (mandatory starting with JDK 23). Versions are
    resolved from the Spring Boot depend
  • .devcontainer/devcontainer.json:5`

Verified locally (spotless:check + verify) in eclipse-temurin containers with Java 17, 25 and 27.

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
@WtfJoke WtfJoke changed the title Update CI build from Java 19 to Java 25 Update CI build from Java 19 to Java 27 (and devcontainer to Java 25) Oct 30, 2026
@WtfJoke
WtfJoke merged commit 09890c3 into main Oct 30, 2026
12 checks passed
@WtfJoke
WtfJoke deleted the buildjava25 branch October 30, 2026 07:49
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