Skip to content

Standardize on specific JDK Versions #313211

Open
@jlesquembre

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 a jdk21 top-level package alongside the existing jdk 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 like jdk17 or jdk21. This approach prevents package breakage when the jdk 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 and jdk18, prefer jdk17 due to its LTS status.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions