Kotlin Compiler
Elide comes with a built-in Kotlin compiler. It is the stock
Kotlin compiler, but with native image technology it starts up faster
and saves time, especially with smaller projects. You can use it via elide kotlinc -- .... It is fully compatible and
drop-in ready with Kotlin 2.3.10. The elide build tool will also automatically compile Kotlin sources based on
declarations in the elide.pkl manifest file.
Note
There are no Elide-specific options before -- at this time. The -- separator is still required.
Examples
Compile and run a Kotlin file:
kotlin
// Hello.kt
fun main() = println("Hello!")bash
elide kotlinc -- Hello.kt && java -cp target HelloKtterminaloutput
Hello!