I needed to develop it in Kotlin, so I summarized it as a memorandum.
Describes the installation of SDKMAN, Kotlin, Gradle, etc.
It's like a JVM-based rbenv.
You can enjoy the same advantages (installation and switching of multiple versions) as the env system such as rbenv.
It seems that it can be used only on UNIX.
Please change the bash part to your shell.
$ curl -s https://get.sdkman.io | bash
$ exec $SHELL -l
$ sdk install kotlin
Prepare the file
hello.kt
fun main(args: Array<String>) {
println("Hello, World!")
}
compile
$ kotlinc hello.kt -include-runtime -d hello.jar
Run
$ java -jar hello.jar
$ sdk install gradle
$ gradle init
You will be asked variously, so select as you like.
$ sdk install kotlin 1.2.71
$ sdk uninstall kotlin 1.2.71
$ sdk default kotlin 1.2.71
$ sdk list kotlin
Recommended Posts