Currently, exactly two JDK releases are supported: JDK Latest (currently 24) and JDK 21. All other version checks are not needed and cause confusion. Thus, this PR does the following:
replace JDK22OrEarlier with JDK21OrEarlier
replace JDK22OrLater with JDK23OrLater
rename JDK23OrLater to JDKLatest
JDKLatest is implemented in a way that we don't need to update the condition for every JDK version bump (boils down to JAVA_SPEC > 21).
There are also predicates for JDK 11 and JDK 17. Those are deprecated and unused, but kept for backwards compatibility reasons.
Currently, exactly two JDK releases are supported: JDK Latest (currently 24) and JDK 21. All other version checks are not needed and cause confusion. Thus, this PR does the following:
JDK22OrEarlier
withJDK21OrEarlier
JDK22OrLater
withJDK23OrLater
JDK23OrLater
toJDKLatest
JDKLatest
is implemented in a way that we don't need to update the condition for every JDK version bump (boils down toJAVA_SPEC > 21
).There are also predicates for JDK 11 and JDK 17. Those are deprecated and unused, but kept for backwards compatibility reasons.