Upgrade java 21#47
Merged
ninhomilton merged 7 commits intoExpediaGroup:Upgrade_Java21from Mar 13, 2026
Merged
Conversation
Spotless 2.4.1 (inherited from eg-oss-parent) uses google-java-format which requires access to internal JDK compiler APIs not exported in Java 21. Override the skip property to disable it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
SpotBugs 4.0.4 (from eg-oss-parent) uses an ASM version that cannot read Java 21 class files (major version 65). Version 4.8.0+ includes an updated ASM that supports Java 21 bytecode. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…JavaUtils With Java 21 / Spring Boot 3.x, JavaUtils.getClassLoader() returns the JVM AppClassLoader which does not include jars from loader.path=lib/. Switching to Thread.currentThread().getContextClassLoader() ensures Spring Boot's LaunchedURLClassLoader is used, which correctly includes external listener jars placed in the lib/ directory at runtime. Fixes ClassNotFoundException for listeners like ApiaryGlueSync loaded from the lib/ directory in containerised deployments. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update base image tag from amazoncorretto:21 (AL2) to amazoncorretto:21-al2023 for Amazon Linux 2023 support. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds Commit 3 section to JAVA21_MIGRATION.md explaining why external listener JARs (added by child Dockerfiles) became invisible after the Java 21 / Hive 4.x migration: Hive 4.x JavaUtils changed getClassLoader() to return AppClassLoader instead of Spring Boot's LaunchedURLClassLoader, and Jib bakes an explicit classpath at image-build time that omits JARs added by child Dockerfile RUN steps. Fix is to override ENTRYPOINT with a wildcard /app/libs/* classpath in the child Dockerfile. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Override transitive dependency versions in dependencyManagement to eliminate critical CVEs detected in the Docker image: - tomcat-embed-*: 10.1.33 -> 10.1.35 (CVE-2025-24813 critical RCE, CVE-2024-56337) - org.apache.avro:avro: 1.7.7 -> 1.11.4 (CVE-2023-39410 critical deserialization and others) - org.apache.kerby:* (15 artifacts): 1.0.1 -> 2.0.3 (CVE-2023-25613 critical) Overrides are declared before the Spring Boot BOM import so they take precedence over BOM-managed and transitive Hive/Hadoop versions. Co-Authored-By: Claude Sonnet 4.6 <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.
📝 Description
🔗 Related Issues