KotlinTopLevelExtension

Deprecated

Replaced with 'KotlinBaseExtension'

Replace with

KotlinBaseExtension

A plugin DSL extension for configuring common options for the entire project.

Use the extension in your build script in the kotlin block:

kotlin {
// Your extension configuration
}

Since

2.1.0

Inheritors

Properties

Link copied to clipboard

The version of the Kotlin compiler.

Link copied to clipboard

Configures Kotlin daemon JVM arguments for all tasks in this project.

Functions

Link copied to clipboard
abstract fun <T : Named> NamedDomainObjectContainer<T>.invokeWhenCreated(name: String, configure: T.() -> Unit)

Can be used to configure objects that are not yet created, or will be created in 'afterEvaluate' (for example, typically for Android source sets containing flavors and buildTypes).

Link copied to clipboard
abstract fun jvmToolchain(jdkVersion: Int)
abstract fun jvmToolchain(action: Action<JavaToolchainSpec>)

Configures Java toolchain both for Kotlin JVM and Java tasks in the project.