How to get all versions (including invisible ones) in SDKMAN

207 views Asked by At

SDKMan has many more versions then that are shown when doing a 'sdk list'. I would like to see those as well, so I can install older versions. SDKMan's API seems to be selective in what it shows, but I cannot find any documentation on it. Based on inspecting the CLI sources I found these URLs:

To list all candidates, like maven, java, etc:

https://api.sdkman.io/2/candidates/all

To get versions for one candidates for one platform (e.g. maven on windows):

https://api.sdkman.io/2/candidates/maven/win/versions/all

The problem is some candidates, most notably java, do not return possible versions in that url. The response is empty.

What am I doing wrong or missing? How can I get all versions for all candidates?

2

There are 2 answers

1
culmat On
0
tbeernot On

From what I have learned, this cannot be done; the API simply does not return the information. But I'd very gladly like to be proven wrong.