You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
Activity
v-mahabaleshwars commentedon Jan 28, 2025
Hi @aep-sunlife,
Thank you for creating this issue. We will investigate it and provide feedback as soon as we have some updates.
brunoborges commentedon Jun 23, 2026
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.
[-]parse distribution from ASDF[/-][+]Parse distribution from ASDF[/+]brunoborges commentedon Jul 8, 2026
Resolved by #1084 — setup-java now infers the JDK distribution from the asdf
.tool-versionsvendor prefix (e.g.java temurin-17.0.3+7), matching the existing.sdkmanrcbehavior, sodistributionno longer needs to be restated. Merged tomain; ships in the next release. Closing as completed.