Repository navigation
Camel 22996 drop java17 - #221
Merged
Merged
Conversation
Java 17 support has been dropped in Camel core and this repository already builds with Java 21 (javaVersion in the root pom.xml and the CI workflows). The root pom.xml still configured JKube to generate container images from registry.access.redhat.com/ubi9/openjdk-17, so images built by the examples would run on a JDK older than the supported baseline. Switch jkube.generator.from to ubi9/openjdk-21 (same Red Hat registry, same ubi9 flavour). No module overrides this property, so the change applies to all JKube-enabled examples. Co-authored-by: IBM Bob 2.2.1 Signed-off-by: Aurélien Pupier <apupier@ibm.com>
Java 17 support has been dropped in Camel core. The loggingtracer module was the only one explicitly setting maven.compiler.release to 17. Remove that property rather than bumping it to 21. Note: this module declares no <parent>, so it does not inherit javaVersion (21) from the examples root pom. Without the property, the compiler level falls back to the maven-compiler-plugin default; the module still compiles (./mvnw -f observation/loggingtracer/pom.xml clean compile) but the generated classes are now Java 8 bytecode (class file major version 52). If a higher bytecode level is wanted later, the module should either get the examples parent or set the release explicitly. Co-authored-by: IBM Bob 2.2.1 Signed-off-by: Aurélien Pupier <apupier@ibm.com>
Java 17 support has been dropped in Camel core and the examples build with Java 21 (javaVersion in the root pom.xml, CI, AGENTS.md). Three READMEs still advertised Java 17 as the minimum: - salesforce: "Java 17 or higher" -> "Java 21 or higher" - genai-observability: "Java 17+" -> "Java 21+" - aot-basic: GraalVM download instructions now say to choose Java 21 (or newer) A search of all *.adoc and *.md files found no other Java version requirement. Co-authored-by: IBM Bob 2.2.1 Signed-off-by: Aurélien Pupier <apupier@ibm.com>
davsclaus
approved these changes
Oct 20, 2026
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.
Summary
Java 17 support has been dropped in Camel core. This repository already builds on Java 21 (
javaVersionin the rootpom.xml, the CI workflows,AGENTS.md), so this PR only removes the leftover Java 17 references.JIRA: https://issues.apache.org/jira/browse/CAMEL-22996
Changes
One commit per change:
Use Java 21 base image for JKube builds
The root
pom.xmlsetjkube.generator.fromtoregistry.access.redhat.com/ubi9/openjdk-17:latest. It now usesubi9/openjdk-21:latest, so container images built by the examples no longer run on a JDK older than the baseline. No module overrides this property.Remove hardcoded Java 17 release from loggingtracer
observation/loggingtracerwas the only module that setmaven.compiler.releaseto 17. The property is removed.Update README prerequisites to Java 21
salesforce,genai-observabilityandaot-basic(GraalVM download instructions) now say Java 21 instead of Java 17.Notes for reviewers
observation/loggingtracerhas no<parent>, so it does not inheritjavaVersion(21). Without the property, the compiler level falls back to themaven-compiler-plugindefault. The module still compiles, but the classes are now Java 8 bytecode (class file major version 52). If you prefer Java 21 bytecode there, the module can either get theexamplesparent or set the release explicitly. I can add that if you want it in this PR.azure/pom.xmlunchanged. It setsmaven.compiler.source/targetto 8, which is not a Java 17 reference, and the build passes.openjdk-17finds no remaining references.Testing
On JDK 21.0.9 (Temurin):
./mvnw -V --no-transfer-progress clean install -DskipTests: BUILD SUCCESS, all 102 modules, includingloggingtracer../mvnw -V --no-transfer-progress test: BUILD SUCCESS, no test failures.I did not build or run any container image with the new
openjdk-21base image. I only confirmed that the image exists in the Red Hat catalog.Claude Code on behalf of Aurélien Pupier