Interface Kapt
-
- All Implemented Interfaces:
-
kotlin.Comparable
,org.gradle.api.Named
,org.gradle.api.Task
,org.gradle.api.plugins.ExtensionAware
,org.jetbrains.kotlin.gradle.tasks.BaseKapt
,org.jetbrains.kotlin.gradle.tasks.UsesKotlinJavaToolchain
public interface Kapt implements BaseKapt
Represents a BaseKapt task whose implementation is running Kotlin/Kapt directly (without using the Kotlin compiler).
-
-
Method Summary
Modifier and Type Method Description abstract Property<Boolean>
getAddJdkClassesToClasspath()
Add JDK classes to the BaseKapt.classpath. abstract ConfigurableFileCollection
getKaptJars()
The file collection that contains org.jetbrains.kotlin:kotlin-annotation-processing-gradle
andkotlin-stdlib
artifacts that are used to run annotation processing.-
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 org.jetbrains.kotlin.gradle.tasks.BaseKapt
getAnnotationProcessorOptionProviders, getClassesDir, getClasspath, getCompiledSources, getDefaultJavaSourceCompatibility, getDestinationDir, getIncAptCache, getIncludeCompileClasspath, getKaptClasspath, getKaptClasspathConfigurationNames, getKotlinSourcesDestinationDir, getSource, getSourceSetName, getStubsDir
-
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.UsesKotlinJavaToolchain
getKotlinJavaToolchain, getKotlinJavaToolchainProvider
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getAddJdkClassesToClasspath
@Input() abstract Property<Boolean> getAddJdkClassesToClasspath()
Add JDK classes to the BaseKapt.classpath.
For example, in Android projects this should be disabled.
-
getKaptJars
@Classpath() abstract ConfigurableFileCollection getKaptJars()
The file collection that contains
org.jetbrains.kotlin:kotlin-annotation-processing-gradle
andkotlin-stdlib
artifacts that are used to run annotation processing.The artifacts' versions must be the same as the version of the Kotlin compiler used to compile the related Kotlin sources.
-
-
-
-