KotlinJvmCompilerOptions

Compiler options for Kotlin/JVM.

Properties

Link copied to clipboard

Report an error if there are any warnings.

Link copied to clipboard

Allow using declarations from only the specified version of bundled libraries.

Link copied to clipboard
@get:Input
abstract val extraWarnings: Property<Boolean>

Enable extra checkers for K2.

Link copied to clipboard

A list of additional compiler arguments

Link copied to clipboard

Generate metadata for Java 1.8 reflection on method parameters.

Link copied to clipboard
@get:Input
abstract val jvmTarget: Property<JvmTarget>

The target version of the generated JVM bytecode (1.8 and 9–23), with 1.8 as the default.

Link copied to clipboard

Provide source compatibility with the specified version of Kotlin.

Link copied to clipboard
@get:Input
abstract val moduleName: Property<String>

Name of the generated '.kotlin_module' file.

Link copied to clipboard
@get:Input
abstract val noJdk: Property<Boolean>

Don't automatically include the Java runtime in the classpath.

Link copied to clipboard
@get:Input
abstract val optIn: ListProperty<String>

Enable API usages that require opt-in with an opt-in requirement marker with the given fully qualified name.

Link copied to clipboard

Enable progressive compiler mode. In this mode, deprecations and bug fixes for unstable code take effect immediately instead of going through a graceful migration cycle. Code written in progressive mode is backward compatible; however, code written without progressive mode enabled may cause compilation errors in progressive mode.

Link copied to clipboard

Don't generate any warnings.

Link copied to clipboard
@get:Input
abstract val useK2: Property<Boolean>

Compile using the experimental K2 compiler pipeline. No compatibility guarantees are provided yet.

Link copied to clipboard
abstract val verbose: Property<Boolean>

Enable verbose logging output.