Hey SDKMAN!
This tool is great!
I came across SDKMAN in a Spring tutorial. It’s a tool like rvm which helps you to manage parallel version of a SDK for the JVM like:
* Java
* Gradle
* Groovy
* Kotlin
* Maven
* Scala
* Spring Boot
* Vert.x
It’s what compelling, so I installed it immediately:
$ curl -s "https://get.sdkman.io" | bash
And the tool updates itselfs when it detects a newer version 🙂
Installation goes like that
$sdk install kotlin Downloading: kotlin 1.2.30 In progress... ######################################################################## 100,0% Installing: kotlin 1.2.30 Done installing! Setting kotlin 1.2.30 as default.
And an installed version is removed by
$sdk uninstall kotlin 1.2.30
With $sdk list kotlin you get list of available versions. So if you decide to switch to a specific version, just type
$sdk use kotlin 1.2.20
To check which version you use, do the following
$sdk current kotlin
$sdk default kotlin 1.2.30 will ensure that all new terminals will use this kotlin version.
And at least, if a new version has a arrived, upgrade with this command
$sdk upgrade kotlin
Resources
http://sdkman.io