Skip to content

Parse distribution from ASDF #738

Description

@aep-sunlife

Description:

When the user specifies the distribution in an ASDF .tool-versions file (e.g. java corretto-1.2.3) then don't require the distribution to be restated explicitly in a redundant distribution field in the setup-java GitHub Actions workflow configuration block.

Justification:

DRY principle and better integration with ADSF and other modern version managers.

Activity

  1. v-mahabaleshwars commented on Jan 28, 2025

    @v-mahabaleshwars
    Contributor

    Hi @aep-sunlife,
    Thank you for creating this issue. We will investigate it and provide feedback as soon as we have some updates.

  2. brunoborges commented on Jun 23, 2026

    @brunoborges
    Contributor

    Tracked under the epic #1048 (infer Java version/distribution from project files), which groups the related file-based detection requests for consistent design. This issue stays open as the specific sub-request.

  3. changed the title [-]parse distribution from ASDF[/-] [+]Parse distribution from ASDF[/+] on Jun 23, 2026
  4. brunoborges commented on Jul 8, 2026

    @brunoborges
    Contributor

    Resolved by #1084 — setup-java now infers the JDK distribution from the asdf .tool-versions vendor prefix (e.g. java temurin-17.0.3+7), matching the existing .sdkmanrc behavior, so distribution no longer needs to be restated. Merged to main; ships in the next release. Closing as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    distributionJDK distribution/version/source supportfeature requestNew feature or request to improve the current logic

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions