GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Parse Java distribution from .sdkmanrc · Issue #971 · actions/setup-java

Parse Java distribution from .sdkmanrc #971

New issue
Copy link
New issue
Copy link
Closed
Feature
Closed
Parse Java distribution from .sdkmanrc#971
Feature
Copy link
Labels
distributionJDK distribution/version/source supportfeature requestNew feature or request to improve the current logic

Description

@mlschechter
mlschechter
opened on Jan 15, 2026
Issue body actions

Description:
Given that the action now supports reading the Java version from the .sdkmanrc file, it would be advantageous to read a default distribution from that file as well. SDKMan uses distinct suffixes for each distribution to simplify mapping.

Justification:
Removes the need for users to duplicate the distribution information into their workflow.

Are you willing to submit a PR?
Maybe? Depends on the level of effort :)

Reacted by 이정렬(AWS), Lukasz, nyo, Pedro Freitas, Oliver Behncke and Travis Wyatt
Reacted by nyo and Kim A. Betti

Activity

  1. mlschechter
    added
    feature requestNew feature or request to improve the current logic
    needs triage
    on Jan 15, 2026
  2. v-aparnajyothi-y
    removed
    needs triage
    on Jan 19, 2026
  3. v-aparnajyothi-y commented on Jan 19, 2026

    @v-aparnajyothi-y
    v-aparnajyothi-y
    on Jan 19, 2026
    Contributor
    More actions

    Hello @mlschechter, Thank you for creating this issue and we will get back to you once we have some feedback on this :)

    Reacted by nyo
  4. lukaszgyg commented on Jan 24, 2026

    @lukaszgyg
    lukaszgyg
    on Jan 24, 2026
    Contributor
    More actions

    I've implemented this feature in PR #975.

    Why This Feature Matters

    When using .sdkmanrc, the distribution information is already present in the file format itself (e.g., java=21.0.5-tem where tem indicates Temurin). Currently, users must redundantly specify this in their workflow:

    Current requirement (redundant):

    - uses: actions/setup-java@main
      with:
        distribution: temurin  # Duplicates information from .sdkmanrc
        java-version-file: .sdkmanrc

    .sdkmanrc already contains:

    java=21.0.5-tem  # "tem" already indicates Temurin
    

    Value Proposition

    1. Eliminates Redundancy: The distribution parameter becomes unnecessary when .sdkmanrc already specifies it
    2. Single Source of Truth: Java configuration lives entirely in .sdkmanrc
    3. Consistency: Local development (SDKMAN) and CI/CD use identical configuration
    4. Simplified Workflows: One less parameter to maintain and keep in sync

    With this feature:

    - uses: actions/setup-java@main
      with:
        java-version-file: .sdkmanrc  # That's it!

    The implementation is backward compatible - if .sdkmanrc doesn't include a distribution suffix, the distribution parameter is still required.

    Reacted by 이정렬(AWS), nyo and Oliver Behncke
    Reacted by nyo
  5. lukaszgyg commented on Mar 24, 2026

    @lukaszgyg
    lukaszgyg
    on Mar 24, 2026
    Contributor
    More actions

    Implemented in PR #975. The PR now parses supported SDKMAN distribution suffixes from .sdkmanrc, including the mapping fixes and test coverage discussed in review.

    Reacted by Michael Schechter
    Reacted by Michael Schechter
  6. michael-schechter-simspace commented on Jun 10, 2026

    @michael-schechter-simspace
    michael-schechter-simspace
    on Jun 10, 2026
    More actions

    @lukaszgyg - Thanks for the implementation; is there any information on when this will be merged and released?

  7. lukaszgyg commented on Jun 10, 2026

    @lukaszgyg
    lukaszgyg
    on Jun 10, 2026
    Contributor
    More actions

    Unfortunately no :-(
    @aparnajyothi-y how we can trigger the review process for #975

  8. brunoborges
    added
    distributionJDK distribution/version/source support
    on Jun 22, 2026
  9. brunoborges commented on Jun 23, 2026

    @brunoborges
    brunoborges
    on Jun 23, 2026
    Contributor
    More actions

    Linking implementation: this is being addressed by PR #975 (distribution detection from .sdkmanrc). Tracking it there — this issue should auto-close when #975 merges.

  10. brunoborges commented on Jun 23, 2026

    @brunoborges
    brunoborges
    on Jun 23, 2026
    Contributor
    More actions

    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.

  11. brunoborges
    added the
    Feature
    issue type on Jun 23, 2026
  12. brunoborges
    closed this as completedon Jul 7, 2026
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

    Type

    Feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.