Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The community seems in favor of adopting JDK 21 and migrating the code base to it. Multiple reasons for it:
- JDK 11 reached officially EOLÂ
- JDK 21 is the latest LTS
- multiple new features like records (bye bye boilerplates on POJOs), pattern matching, better GC, better thread management, ...
Few things to keep in mind as well:
- should we switch our modules to Jigsaw modules?
- should we maintain a JDK11 version in parallel for letting time for everybody to do the switch?
How:
- ADR explaining the change
- switch the JDK to 21 in the code base
- modify the code to get a green build with minimal changes first
- update documentation accordingly
- can refactoring things little by little after (like switching to records for POJOs for example)