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

Allow to install multiple JDK distributions

Open pjBooms opened this issue 4 months ago • 2 comments

Description: The documentation says how to install multiple JDK versions. It would be nice to add ability to install multiple JDK distributions as well.

Justification: Some of our tests require a specific JDK distribution while other are able to work with any JDK. Now we have to install that specific JDK, while it would be better for us to run other tests on more commonly used JDK.

Are you willing to submit a PR? No

pjBooms avatar Oct 20 '25 14:10 pjBooms

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

priya-kinthali avatar Oct 21 '25 02:10 priya-kinthali

@priya-kinthali @pjBooms This feature looks same as issue #552 and it is met when PR #553 would be merged. I am using it for the purpose to install multiple JDK versions. Only the first JDK install is updating settings.xml. Any subsequent additional JDK installation will add those additional JDKs to the toolchains.xml only and will not touch the settings.xml.

mhoffrog avatar Nov 23 '25 23:11 mhoffrog