-
Task
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
None
-
False
-
-
False
-
-
Description
We are now two LTS releases behind in our Java support. Given that we are currently on Java 17 and LTS Java versions are 17, 21, and 25, we should move the common library modules up to Java 21.
The example and proof of concept for upgrading specific maven modules to use Java 21 was done as part of SWATCH-4144. The PR for that work can be found here: https://github.com/RedHatInsights/rhsm-subscriptions/pull/5122/files
This upgrade targets all 14 swatch-common-* library modules that provide shared functionality across the Swatch codebase:
- swatch-common-clock
- swatch-common-config-workaround
- swatch-common-export
- swatch-common-health
- swatch-common-kafka
- swatch-common-models
- swatch-common-panache
- swatch-common-resteasy
- swatch-common-resteasy-client
- swatch-common-security
- swatch-common-smallrye-fault-tolerance
- swatch-common-splunk
- swatch-common-testcontainers
- swatch-common-trace-response
These modules form the base layer that virtually all Swatch services depend on, so they must be upgraded first before any service modules can be upgraded.
Note: This upgrade targets Java 21, not Java 25, because a UBI image for OpenJDK 25 is not yet available.
Acceptance Criteria
- All 14 swatch-common-* modules' POMs are updated to Java 21.
- All modules compile, run, and pass all tests with OpenJDK 21.
- Any container images for these modules (if applicable) are updated to use ubi9/openjdk-21 as the base image.
Out of scope:
- Other modules and services and the parent pom
- blocks
-
SWATCH-4158 Bump io.quarkiverse.logging.splunk:quarkus-logging-splunk from 4.1.2 to 5.0.0
-
- Backlog
-
-
SWATCH-4276 Update parent pom to Java 21
-
- Backlog
-
-
SWATCH-4278 Upgrade foundational shared maven modules to Java 21
-
- Backlog
-
- clones
-
SWATCH-4279 Update core modules to Java 21
-
- Backlog
-