Description
Part of #313216
Issue description
We currently have several JDK derivations, such as jdk22
, jdk20
, and a single generic package jdk
. However, jdk
points to version 21, while a dedicated jdk21
package is missing. This inconsistency can be confusing.
Proposal:
-
Introduce dedicated packages: Add ajdk21
top-level package alongside the existingjdk
alias, which would continue to point to the latest LTS version. -
Enforce specific version references: Disallow references to
jdk
within other derivations. Instead, require explicit references to specific versions likejdk17
orjdk21
. This approach prevents package breakage when thejdk
alias is updated to a newer LTS version. -
Prioritize LTS versions: When possible, encourage referencing LTS versions. For example, if a program works with both
jdk17
andjdk18
, preferjdk17
due to its LTS status.
Metadata
Assignees
Labels
Type
Projects
Status
To do