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
The version of the Kotlin compiler.
Specifies the version of the core Kotlin libraries that are added to the Kotlin compile classpath, unless there is already a dependency added to this project.
Configures default explicit API mode for all non-test compilations in the project.
Configures Kotlin daemon JVM arguments for all tasks in this project.
A NamedDomainObjectContainer containing all registered KotlinSourceSets in this project.
Functions
Sets explicitApi option to report issues as errors.
Sets explicitApi option to report issues as warnings.
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).
Configures Java toolchain both for Kotlin JVM and Java tasks in the project.