setup-java icon indicating copy to clipboard operation
setup-java copied to clipboard

Add support for `.sdkmanrc` file in `java-version-file` parameter

Open fabasoad opened this issue 1 year ago • 3 comments

Description: Add support for .sdkmanrc file in java-version-file parameter.

Justification: SDKMAN! is a popular package manager, especially for java ecosystem. Would be awesome to have an out of the box support for .sdkmanrc files in the same way as java-version-file currently supports .tool-versions by asdf.

Are you willing to submit a PR? I hope I can find some time to file a PR.

fabasoad avatar Aug 11 '24 05:08 fabasoad

Hi @fabasoad 👋, Thank you for the feature request. We'll investigate it and get back to you as soon as we have updates.

priyagupta108 avatar Aug 12 '24 05:08 priyagupta108

Given the degree to which SDKMAN has proliferated, this would be helpful for keeping things DRY and not having to update versions in multiple places!

jamesdh avatar Oct 22 '24 21:10 jamesdh

It seem there is now a PR for it https://github.com/actions/setup-java/pull/736 <3

Looking forward for the merge

joergi avatar Feb 13 '25 09:02 joergi

Hi @fabasoad ,

Thanks for this feature request.

I'm happy to let you know that @guicamest has implemented support for .sdkmanrc in the java-version-file parameter in PR #736. The implementation includes tests and documentation updates.

To utilize this feature, Please use actions/setup-java@main branch in your workflows for now, and the changes will be reflected in the upcoming releases.

This feature is available in the action. Closing this issue as the feature has been implemented.

Thanks again for the suggestion!

gowridurgad avatar Nov 26 '25 15:11 gowridurgad