All apps/Kotlin compiler

Kotlin compiler

kotlinc

Command-line compiler for Kotlin on the JVM.

Runs as kotlinc|macOS, Linux, Windows|kotlinlang.org

Command form

ai-draft · 1 task · 9 fields

Compile Kotlin sources to class files or a JAR. Advanced -X options and compiler plugins are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui kotlinc
Compile KotlinExample values, fixed in this page — nothing here reaches a terminal
Basic
Source files or directories*
any
Output (-d)*
any
JVM target
string
TasksEach one presets the form for one job
Compile to runnable JAR
sourcesdestjvm_target
ParametersOnly these flags are editable in the form
Source files or directories
path · positional 0 · repeatable
Output (-d)
Directory, ZIP or JAR for the generated class files.
path
-d
Include Kotlin runtime
boolean
-include-runtime
Classpath
string
-classpath
JVM target
string
-jvm-target1.8111721
Module name
string
-module-name
Suppress warnings
boolean
-nowarn
Warnings as errors
boolean
-Werror
Verbose
boolean
-verbose
SourcesEvery flag above is checked against these
fig
-d: Place the generated class files into the specified location. The location can be a directory, a ZIP, or a JAR file -include-runtime: Include the Kotlin runtime into the resulting JAR file. Makes the resulting archive runnable on any Java-enabled environment -classpath: Search for class files in the specified paths. Separate elements of the classpath with…
completion

github.com

Before it fills your prompt, Otty checks the installed kotlinc against its version. A form that does not match your version is not offered.