Questions tagged [kotlinc]

Kotlin Compiler - Comes bundled with standard Kotlin package

Compile the application using the Kotlin compiler.

$ kotlinc hello.kt -include-runtime -d hello.jar

The -d option indicates what we want the output of the compiler to be called and may be either a directory name for class files or a .jar file name. The -include-runtime option makes the resulting .jar file self-contained and runnable by including the Kotlin runtime library in it. If you want to see all available options run

$ kotlinc -help

Run the application.

$ java -jar hello.jar

61 questions
0
votes
1 answer

Can I invoke the Kotlin noargs plugin from the command line or from Ant?

Kotlin has a noarg compiler plugin which can be used to generate synthetic no-argument constructors for specially-annotated classes. The documentation page clearly explains how to use it with Maven and Gradle, but it is not clear whether it can be…
0xbe5077ed
  • 4,565
  • 6
  • 35
  • 77
1 2 3 4
5