Kotlin 2 cheatsheet
Kotlin 2: Tooling
4 common Kotlin 2 tasks.
Compile and run a file
Compile to a jar and run it with the Kotlin runtime included.
kotlinc hello.kt -include-runtime -d hello.jar && java -jar hello.jar
Build and test with Gradle
Build, run the tests and run the application in a Gradle project.
./gradlew build
./gradlew test
./gradlew run