KotlinJvmCompile

Represents a Kotlin task compiling given Kotlin sources into JVM class files.

Inheritors

Properties

Link copied to clipboard

Represents the compiler options used by a Kotlin compilation process.

Link copied to clipboard

The destination directory where the task artifact can be found.

Link copied to clipboard

Paths to the output directories of the friend modules whose internal declarations should be visible.

Link copied to clipboard

Controls JVM target validation mode between this task and the Java compilation task from Gradle for the same source set.

Link copied to clipboard

A helper shortcut to get KotlinJavaToolchain from kotlinJavaToolchainProvider without calling the .get() method.

Link copied to clipboard

Kotlin task configured JVM toolchain.

Link copied to clipboard

Represents the compiler options used by a Kotlin compilation process.

Link copied to clipboard

Collection of external artifacts participating in the output artifact generation.

Link copied to clipboard

Enables the Kotlin Multiplatform flag for compilation.

Link copied to clipboard

Kotlin compiler plugins artifacts , such as JAR or class files, that participate in the compilation process. All files that are permitted in the JVM classpath are permitted here.

Link copied to clipboard

The configuration for the Kotlin compiler plugin added in pluginClasspath using CompilerPluginConfig.

Link copied to clipboard

The configured task inputs (for example, Kotlin sources) which are used to produce a task artifact.

Link copied to clipboard

Specifies the name of org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet that is compiled.

Link copied to clipboard

Enable more granular tracking of inter-modules as part of incremental compilation. Useful in Android projects.

Functions

Link copied to clipboard
abstract operator fun compareTo(other: Task): Int
Link copied to clipboard
open fun compilerOptions(configure: KotlinJvmCompilerOptions.() -> Unit)

Configures the compilerOptions with the provided configuration.

Link copied to clipboard
abstract fun configure(configureClosure: Closure<Any>): Task
Link copied to clipboard
abstract fun dependsOn(vararg paths: Any): Task
Link copied to clipboard
abstract fun doFirst(@DelegatesTo(value = Task::class) action: Closure<Any>): Task
abstract fun doFirst(action: Action<in Task>): Task
abstract fun doFirst(actionName: String, action: Action<in Task>): Task
Link copied to clipboard
abstract fun doLast(@DelegatesTo(value = Task::class) action: Closure<Any>): Task
abstract fun doLast(action: Action<in Task>): Task
abstract fun doLast(actionName: String, action: Action<in Task>): Task
Link copied to clipboard
abstract fun doNotTrackState(reasonNotToTrackState: String)
Link copied to clipboard
abstract fun exclude(excludeSpec: Closure<Any>): PatternFilterable
abstract fun exclude(vararg excludes: String): PatternFilterable
abstract fun exclude(excludeSpec: Spec<FileTreeElement>): PatternFilterable
Link copied to clipboard
abstract fun finalizedBy(vararg paths: Any): Task
Link copied to clipboard
Link copied to clipboard
abstract fun getAnt(): AntBuilder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getDidWork(): Boolean
Link copied to clipboard
abstract fun getEnabled(): Boolean
Link copied to clipboard
abstract override fun getExcludes(): MutableSet<String>

Returns the set of exclude patterns.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getGroup(): String?
Link copied to clipboard
abstract override fun getIncludes(): MutableSet<String>

Returns the set of include patterns.

Link copied to clipboard
abstract fun getInputs(): TaskInputs
Link copied to clipboard
Link copied to clipboard
abstract fun getLogger(): Logger
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract override fun getName(): String
Link copied to clipboard
Link copied to clipboard
abstract fun getPath(): String
Link copied to clipboard
abstract fun getProject(): Project
Link copied to clipboard
Link copied to clipboard
abstract fun getState(): TaskState
Link copied to clipboard
Link copied to clipboard
abstract fun getTemporaryDir(): File
Link copied to clipboard
Link copied to clipboard
abstract fun hasProperty(propertyName: String): Boolean
Link copied to clipboard
abstract fun include(includeSpec: Closure<Any>): PatternFilterable
abstract fun include(vararg includes: String): PatternFilterable
abstract fun include(includeSpec: Spec<FileTreeElement>): PatternFilterable
Link copied to clipboard

Configures the kotlinOptions with the provided configuration.

Link copied to clipboard
abstract fun mustRunAfter(vararg paths: Any): Task
Link copied to clipboard
Link copied to clipboard
abstract fun onlyIf(onlyIfClosure: Closure<Any>)
abstract fun onlyIf(onlyIfSpec: Spec<in Task>)
abstract fun onlyIf(onlyIfReason: String, onlyIfSpec: Spec<in Task>)
Link copied to clipboard
abstract fun property(propertyName: String): Any?
Link copied to clipboard
abstract fun setActions(actions: MutableList<Action<in Task>>)
Link copied to clipboard
abstract fun setDependsOn(dependsOnTasks: MutableIterable<*>)
Link copied to clipboard
abstract fun setDescription(@Nullable description: String?)
Link copied to clipboard
abstract fun setDidWork(didWork: Boolean)
Link copied to clipboard
abstract fun setEnabled(enabled: Boolean)
Link copied to clipboard
Link copied to clipboard
abstract fun setFinalizedBy(finalizedBy: MutableIterable<*>)
Link copied to clipboard
abstract fun setGroup(@Nullable group: String?)
Link copied to clipboard
Link copied to clipboard
abstract fun setMustRunAfter(mustRunAfter: MutableIterable<*>)
Link copied to clipboard
abstract fun setOnlyIf(onlyIfClosure: Closure<Any>)
abstract fun setOnlyIf(onlyIfSpec: Spec<in Task>)
abstract fun setOnlyIf(onlyIfReason: String, onlyIfSpec: Spec<in Task>)
Link copied to clipboard
abstract fun setProperty(name: String, value: Any)
Link copied to clipboard
abstract fun setShouldRunAfter(shouldRunAfter: MutableIterable<*>)
Link copied to clipboard
abstract fun setSource(vararg sources: Any)

Sets input sources for this task.

Link copied to clipboard
abstract fun shouldRunAfter(vararg paths: Any): TaskDependency
Link copied to clipboard
abstract fun source(vararg sources: Any)

Adds input sources for this task.

Link copied to clipboard
abstract fun usesService(service: Provider<out BuildService<*>>)