Describe the bug
With --jdk-providers=sdkman, devkitman fails to detect installed SDKMAN JDKs by version when folder names are normal SDKMAN names like 25.0.1-tem for example
To Reproduce
- Ensure SDKMAN has Java 25 installed (e.g.
25.0.1-tem) and Java 21 current.
- Run:
jbang --verbose run --jdk-providers=sdkman demos@tamboui --help`
- Observe log:
Using JDK provider(s): SdkmanJdkProvider
- then:
No suitable JDK was found for requested version: 25
Expected behavior
SDKMAN provider should detect installed JDK folders like 25.0.1-tem and satisfy java: 25+ without failing lookup.
JBang version
[jbang] [0:510] jbang version 0.135.1
Cache: /home/ayagmar/.jbang/cache
Config: /home/ayagmar/.jbang
Repository: /home/ayagmar/.m2/repository
Java: /home/ayagmar/.sdkman/candidates/java/21-tem [21]
OS: linux
Arch: x64
Shell: bash
Native Image: false
0.135.1
Additional context
Add any other context about the problem here.
Describe the bug
With
--jdk-providers=sdkman, devkitman fails to detect installed SDKMAN JDKs by version when folder names are normal SDKMAN names like25.0.1-temfor exampleTo Reproduce
25.0.1-tem) and Java 21 current.jbang --verbose run --jdk-providers=sdkman demos@tamboui --help`
Using JDK provider(s): SdkmanJdkProviderNo suitable JDK was found for requested version: 25Expected behavior
SDKMAN provider should detect installed JDK folders like
25.0.1-temand satisfyjava: 25+without failing lookup.JBang version
[jbang] [0:510] jbang version 0.135.1
Cache: /home/ayagmar/.jbang/cache
Config: /home/ayagmar/.jbang
Repository: /home/ayagmar/.m2/repository
Java: /home/ayagmar/.sdkman/candidates/java/21-tem [21]
OS: linux
Arch: x64
Shell: bash
Native Image: false
0.135.1
Additional context
Add any other context about the problem here.