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 — Specify distribution via java-version-file · Issue #646 · actions/setup-java

Specify distribution via java-version-file #646

New issue
Copy link
New issue
Copy link
Closed as not planned
Feature
Closed as not planned
Specify distribution via java-version-file#646
Feature
Copy link
Assignees
brunoborgescopilot-swe-agent
Labels
distributionJDK distribution/version/source supportfeature requestNew feature or request to improve the current logic

Description

@tsawada
tsawada
opened on Jul 18, 2024
Issue body actions

Currently, setup-java requires distribution field. However, one can specify a distribution in .java-version thus the distribution input field can be redundant or even confusing when these two disagree.

It'd be great if distribution field is optional and can be configured via .java-version file.

Reacted by Clemens, Robert Rathsack and Vedran Pavic
Reacted by Adriano Teles
Reacted by Copilot

Activity

  1. tsawada
    added
    feature requestNew feature or request to improve the current logic
    needs triage
    on Jul 18, 2024
  2. v-priya-kinthali
    removed
    needs triage
    on Jul 18, 2024
  3. v-priya-kinthali commented on Jul 18, 2024

    @v-priya-kinthali
    v-priya-kinthali
    on Jul 18, 2024
    Contributor
    More actions

    Hello @tsawada 👋,
    Thank you for this feature request. We will investigate it and get back to you as soon as we have some feedback.

  4. skateball commented on Feb 11, 2025

    @skateball
    skateball
    on Feb 11, 2025
    Contributor
    More actions

    Hi @tsawada ,
    have you checked to not use a distribution in the yml file?

    To me the following should work and use a recent temurin 21 release

    steps:
    - uses: actions/checkout@v4
    - uses: actions/setup-java@v4
      with:
        java-version: '21'
    - run: java HelloWorldApp.java

    Regards Christian

  5. lukaszgyg commented on Mar 24, 2026

    @lukaszgyg
    lukaszgyg
    on Mar 24, 2026
    Contributor
    More actions

    Related work landed in PR #975: it makes distribution optional when java-version-file points to a .sdkmanrc that already carries the SDKMAN distribution suffix, for example java=21.0.5-tem.

  6. brunoborges
    added
    distributionJDK distribution/version/source support
    on Jun 22, 2026
  7. 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.

  8. brunoborges
    added the
    Feature
    issue type on Jun 23, 2026
  9. brunoborges
    assigned
    Copilot
    and
    brunoborges
    on Jul 7, 2026
  10. Copilot
    linked a pull request that will close this issueSupport inferring distribution from .java-version and .tool-versions files #1076on Jul 7, 2026
  11. brunoborges commented on Jul 7, 2026

    @brunoborges
    brunoborges
    on Jul 7, 2026
    Contributor
    More actions

    TO my knowledge, .java-version from jEnv does not take distribution. And it is unclear if asdf supports as well. Support for SDKMAN was added recently.

  12. brunoborges
    closed this as not plannedon Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @brunoborges
    brunoborges
  • Copilot

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.