BaseKapt

Represents a Kotlin task that runs annotation processing using Kotlin/Kapt.

Note: Always run this task after its related KaptGenerateStubs and KotlinJvmCompile tasks.

Inheritors

Properties

Link copied to clipboard

Represents a list of annotation processor option providers.

Link copied to clipboard
abstract val annotationProcessorOptionsProviders: ListProperty<CommandLineArgumentProvider>

Represents a list of annotation processor option providers.

Link copied to clipboard
@get:OutputDirectory
abstract val classesDir: DirectoryProperty

The directory where class files generated by annotation processing can be found.

Link copied to clipboard
@get:Internal(value = "Task implementation adds correct input annotation.")
abstract val classpath: ConfigurableFileCollection

Contains all artifacts from the related KotlinJvmCompile.libraries task input.

Link copied to clipboard
@get:Internal
abstract val compiledSources: ConfigurableFileCollection

The directory that contains the compiled related KotlinJvmCompile task classes.

Link copied to clipboard
@get:Internal(value = "Used to compute javac option.")
abstract val defaultJavaSourceCompatibility: Property<String>

Java source compatibility in the form of the Java language level for the produced class files and Java source code.

Link copied to clipboard
@get:OutputDirectory
abstract val destinationDir: DirectoryProperty

The directory where Java source files generated by annotation processing can be found.

Link copied to clipboard
@get:LocalState
abstract val incAptCache: DirectoryProperty

The output directory containing the caches necessary to support incremental annotation processing.

Link copied to clipboard
@get:Input
abstract val includeCompileClasspath: Property<Boolean>

Enable searching for annotation processors in the classpath.

Link copied to clipboard
@get:Classpath
abstract val kaptClasspath: ConfigurableFileCollection

Allows adding artifacts (usually JAR files) that contain the implementation of the Java annotation processor.

Link copied to clipboard
@get:Internal
abstract val kaptClasspathConfigurationNames: ListProperty<String>

The names of Gradle's org.gradle.api.artifacts.Configuration that contains all the annotation processor artifacts used to configure kaptClasspath.

Link copied to clipboard
@get:OutputDirectory
abstract val kotlinSourcesDestinationDir: DirectoryProperty

The directory where Java source files generated by annotation processing can be found.

Link copied to clipboard
@get:InputFiles
@get:IgnoreEmptyDirectories
@get:Incremental
@get:NormalizeLineEndings
@get:PathSensitive(value = PathSensitivity.RELATIVE)
abstract val source: ConfigurableFileCollection

Contains all Java source code used in this compilation and generated by related KaptGenerateStubs task stubs.

Link copied to clipboard
@get:Internal
abstract val sourceSetName: Property<String>

Specifies the name of org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet for which task is doing annotation processing.

Link copied to clipboard
@get:Internal
abstract val stubsDir: DirectoryProperty

The directory where the generated related KaptGenerateStubs task stub can be found.