Interface KaptGenerateStubs
-
- All Implemented Interfaces:
-
kotlin.Comparable
,org.gradle.api.Named
,org.gradle.api.Task
,org.gradle.api.plugins.ExtensionAware
,org.gradle.api.tasks.util.PatternFilterable
,org.jetbrains.kotlin.gradle.dsl.KotlinCompile
,org.jetbrains.kotlin.gradle.tasks.BaseKotlinCompile
,org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
,org.jetbrains.kotlin.gradle.tasks.KotlinCompileTool
,org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
,org.jetbrains.kotlin.gradle.tasks.UsesKotlinJavaToolchain
public interface KaptGenerateStubs implements KotlinJvmCompile
Represents a Kotlin task that generates stubs from Java annotation processing results.
This task generates annotation processing output stubs (without the actual method implementations) using Java source code. These generated stubs can be referenced in Kotlin source code compilation before completing annotation processing.
This task is a part of Kotlin/Kapt.
-
-
Method Summary
Modifier and Type Method Description abstract DirectoryProperty
getStubsDir()
The directory where generated stubs can be found. abstract ConfigurableFileCollection
getKaptClasspath()
Allows adding artifacts (accepted by JVM classpath) containing implementation of Java annotation processor. -
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.KotlinCompileTool
getDestinationDirectory, getExcludes, getIncludes, getLibraries, getSources, setSource, source
-
Methods inherited from class org.gradle.api.tasks.util.PatternFilterable
exclude, exclude, exclude, exclude, include, include, include, include, setExcludes, setIncludes
-
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.dsl.KotlinCompile
getKotlinOptions, kotlinOptions, kotlinOptions
-
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
compilerOptions, compilerOptions, getCompilerOptions
-
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
getJvmTargetValidationMode
-
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.BaseKotlinCompile
getFriendPaths, getMultiPlatformEnabled, getPluginClasspath, getPluginOptions, getSourceSetName, getUseModuleDetection
-
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
-
getStubsDir
@OutputDirectory() abstract DirectoryProperty getStubsDir()
The directory where generated stubs can be found.
-
getKaptClasspath
@Internal(value = "Not an input, just passed as kapt args. ") abstract ConfigurableFileCollection getKaptClasspath()
Allows adding artifacts (accepted by JVM classpath) containing implementation of Java annotation processor.
Configure this property with the same artifacts as its related Kapt task.
-
-
-
-