Integrate with SDKMan JDK handling. #1092
Replies: 3 comments 5 replies
-
The challenge is I cant see how we can do this reliably. I.e. last I looked sdkman don't have a notion of getting latest major version; ie. Give me latest java 17.. Jbang does honor whatever is configured in the system first so you can use sdkman or anything else to manage sdk outside jbang. Maybe what you would want is way to avoid jbang auto downloads ? And instead fails if download needed ? |
Beta Was this translation helpful? Give feedback.
-
One possible solution would be to have an option where the jdk handling is delegated to an external script/executable. Let's say for example that we check if a script/executable named (PS: Ideally we would be able to use the same system for our own built-in jdk handling, perhaps by leveraging the plugin system) |
Beta Was this translation helpful? Give feedback.
-
Btw, there's already an issue for this: #316 |
Beta Was this translation helpful? Give feedback.
-
I love how JBang is able to fetch the appropriate JDK distribution if the default does not support the version required in the scripts.
But many times it tries to download distributions I already have available in my local through SDKMan.
It would be interesting if JBang could detect SDKMan available in the system, and delegate to it (maybe through
sdk env
) to activate the needed JDK version in the current shell.Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions