Interface KotlinCompile
-
- All Implemented Interfaces:
-
kotlin.Comparable
,org.gradle.api.Named
,org.gradle.api.Task
,org.gradle.api.plugins.ExtensionAware
@Deprecated(message = "Replaced with 'KotlinCompilationTask' that exposes the compiler options DSL. More details are here: https://kotl.in/u1r8ln")@KotlinGradlePluginDsl() public interface KotlinCompile<T extends KotlinCommonOptions> implements Task
Represents a Kotlin task compiling using configurable kotlinOptions.
See KotlinCommonOptions and its inheritors for possible Kotlin compiler options.
Note: This interface is soft-deprecated and only exists for compatibility to configure Kotlin compilation options using soft-deprecated kotlinOptions. Instead, better to use KotlinCompilationTask to configure Kotlin compilation options via KotlinCompilationTask.compilerOptions.
-
-
Method Summary
Modifier and Type Method Description Unit
kotlinOptions(Function1<T, Unit> fn)
Configures the kotlinOptions with the provided configuration. Unit
kotlinOptions(Action<in T> fn)
Configures the kotlinOptions with the provided configuration. abstract T
getKotlinOptions()
Represents the compiler options used by a Kotlin compilation process. -
Methods inherited from class kotlin.Comparable
compareTo
-
Methods inherited from class org.gradle.api.plugins.ExtensionAware
getExtensions
-
Methods inherited from class org.gradle.api.Task
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
kotlinOptions
@Deprecated(message = "Please migrate to the compilerOptions DSL. More details are here: https://kotl.in/u1r8ln") Unit kotlinOptions(Function1<T, Unit> fn)
Configures the kotlinOptions with the provided configuration.
-
kotlinOptions
@Deprecated(message = "Please migrate to the compilerOptions DSL. More details are here: https://kotl.in/u1r8ln") Unit kotlinOptions(Action<in T> fn)
Configures the kotlinOptions with the provided configuration.
-
getKotlinOptions
@Internal() abstract T getKotlinOptions()
Represents the compiler options used by a Kotlin compilation process.
This can be used to get the values of currently configured options or modify them.
The kotlinOptions configuration is delegated to the related task
compilerOptions
input configuration.
-
-
-
-