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:
[code]
$ curl -s "https://get.sdkman.io" | bash
[/code]
And the tool updates itselfs when it detects a newer version 🙂
Installation goes like that
[code]
$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.
[/code]
And an installed version is removed by
[code]
$sdk uninstall kotlin 1.2.30
[/code]
With $sdk list kotlin you get list of available versions. So if you decide to switch to a specific version, just type
[code]
$sdk use kotlin 1.2.20
[/code]
To check which version you use, do the following
[code]
$sdk current kotlin
[/code]
$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
[code]
$sdk upgrade kotlin
[/code]
Resources
http://sdkman.io