Last active
January 17, 2025 15:51
-
-
Save jeffscottbrown/020f913951a75de24df354b145bb0c49 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This demonstrates the SdkMan capability that I mentioned. I only recently | |
discovered it, and I like it. sdkman_auto_env=true is required in ~/.sdkman/etc/config | |
in order for this to work. | |
brownj@Jeff-Brown-Unity meta % | |
brownj@Jeff-Brown-Unity meta % | |
brownj@Jeff-Brown-Unity meta % cat java11project/.sdkmanrc | |
java=11.0.24-librca | |
grails=5.3.6 | |
brownj@Jeff-Brown-Unity meta % | |
brownj@Jeff-Brown-Unity meta % | |
brownj@Jeff-Brown-Unity meta % cat java17project/.sdkmanrc | |
java=17.0.12-librca | |
grails=6.2.2 | |
brownj@Jeff-Brown-Unity meta % | |
brownj@Jeff-Brown-Unity meta % cd java11project | |
Using java version 11.0.24-librca in this shell. | |
Using grails version 5.3.6 in this shell. | |
brownj@Jeff-Brown-Unity java11project % cd .. | |
Restored java version to 21.0.5-tem (default) | |
Restored grails version to 6.2.2 (default) | |
brownj@Jeff-Brown-Unity meta % | |
brownj@Jeff-Brown-Unity meta % cd java17project | |
Using java version 17.0.12-librca in this shell. | |
Using grails version 6.2.2 in this shell. | |
brownj@Jeff-Brown-Unity java17project % cd .. | |
Restored java version to 21.0.5-tem (default) | |
Restored grails version to 6.2.2 (default) | |
More info at https://sdkman.io/usage#env-command. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment