-
- All Implemented Interfaces:
-
kotlin.Comparable
,org.gradle.api.Task
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.TaskInternal
,org.gradle.api.plugins.ExtensionAware
,org.gradle.api.tasks.util.PatternFilterable
,org.gradle.util.Configurable
,org.jetbrains.kotlin.gradle.dsl.KotlinCompile
,org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile
,org.jetbrains.kotlin.gradle.internal.CompilerArgumentAware
,org.jetbrains.kotlin.gradle.internal.CompilerArgumentAwareWithInput
,org.jetbrains.kotlin.gradle.internal.tasks.TaskWithLocalState
,org.jetbrains.kotlin.gradle.tasks.BaseKotlinCompile
,org.jetbrains.kotlin.gradle.tasks.CompileUsingKotlinDaemon
,org.jetbrains.kotlin.gradle.tasks.CompileUsingKotlinDaemonWithNormalization
,org.jetbrains.kotlin.gradle.tasks.KaptGenerateStubs
,org.jetbrains.kotlin.gradle.tasks.KotlinCompileTool
,org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
,org.jetbrains.kotlin.gradle.tasks.UsesKotlinJavaToolchain
@CacheableTask() public abstract class KaptGenerateStubsTask extends KotlinCompile implements KaptGenerateStubs
-
-
Field Summary
Fields Modifier and Type Field Description private final ConfigurableFileCollection
libraries
private final Property<Boolean>
verbose
private final ConfigurableFileCollection
additionalSources
private final FileCollection
sources
private String
javaPackagePrefix
private Boolean
usePreciseJavaTracking
private FileCollection
classpath
private final Property<Boolean>
useKotlinAbiSnapshot
private final KotlinCompile.ClasspathSnapshotProperties
classpathSnapshotProperties
private final Provider<KotlinJavaToolchain>
kotlinJavaToolchainProvider
private final Boolean
disableMultiModuleIC
private final FileCollection
javaSources
private final KotlinJvmOptions
kotlinOptions
private Boolean
incremental
private final ArrayList<String>
startParameters
private final Property<String>
ownModuleName
private final Provider<RegularFile>
abiSnapshotFile
private final Property<String>
abiSnapshotRelativePath
private final Property<BuildMetricsReporter>
metrics
private final DirectoryProperty
destinationDirectory
private final List<String>
serializedCompilerArguments
private final List<String>
defaultSerializedCompilerArguments
private final List<String>
serializedCompilerArgumentsIgnoreClasspathIssues
private final Map<String, String>
filteredArgumentsMap
private final ConfigurableFileCollection
localStateDirectories
private final Provider<List<String>>
normalizedKotlinDaemonJvmArguments
private final Property<KotlinCompilerExecutionStrategy>
compilerExecutionStrategy
private final ListProperty<String>
kotlinDaemonJvmArguments
private final ConfigurableFileCollection
friendPaths
private final Property<String>
moduleName
private final Property<Boolean>
multiPlatformEnabled
private final ConfigurableFileCollection
pluginClasspath
private final ListProperty<CompilerPluginConfig>
pluginOptions
private final Property<String>
sourceSetName
private final Property<Boolean>
useModuleDetection
private final Property<KotlinJvmOptions>
parentKotlinOptions
private final KotlinJavaToolchain
kotlinJavaToolchain
private final ConfigurableFileCollection
kaptClasspath
private final DirectoryProperty
stubsDir
-
Constructor Summary
Constructors Constructor Description KaptGenerateStubsTask(WorkerExecutor workerExecutor, ObjectFactory objectFactory)
-
Method Summary
Modifier and Type Method Description abstract ConfigurableFileCollection
getLibraries()
abstract Property<Boolean>
getVerbose()
abstract ConfigurableFileCollection
getAdditionalSources()
Changes in this additional sources will trigger stubs regeneration, but the sources themselves will not be used to find kapt annotations and generate stubs. FileCollection
getSources()
final String
getJavaPackagePrefix()
A package prefix that is used for locating Java sources in a directory structure with non-full-depth packages. final Unit
setJavaPackagePrefix(String javaPackagePrefix)
A package prefix that is used for locating Java sources in a directory structure with non-full-depth packages. final Boolean
getUsePreciseJavaTracking()
final Unit
setUsePreciseJavaTracking(Boolean usePreciseJavaTracking)
final FileCollection
getClasspath()
final Unit
setClasspath(@Deprecated(message = "Replaced with 'libraries' input", replaceWith = @ReplaceWith(imports = {}, expression = "libraries")) FileCollection classpath)
abstract Property<Boolean>
getUseKotlinAbiSnapshot()
abstract KotlinCompile.ClasspathSnapshotProperties
getClasspathSnapshotProperties()
final Provider<KotlinJavaToolchain>
getKotlinJavaToolchainProvider()
final Boolean
getDisableMultiModuleIC()
FileCollection
getJavaSources()
KotlinJvmOptions
getKotlinOptions()
final Boolean
getIncremental()
final Unit
setIncremental(Boolean incremental)
final ArrayList<String>
getStartParameters()
abstract Property<String>
getOwnModuleName()
final Provider<RegularFile>
getAbiSnapshotFile()
final Property<String>
getAbiSnapshotRelativePath()
Property<BuildMetricsReporter>
getMetrics()
abstract DirectoryProperty
getDestinationDirectory()
List<String>
getSerializedCompilerArguments()
List<String>
getDefaultSerializedCompilerArguments()
List<String>
getSerializedCompilerArgumentsIgnoreClasspathIssues()
Map<String, String>
getFilteredArgumentsMap()
abstract ConfigurableFileCollection
getLocalStateDirectories()
Provider<List<String>>
getNormalizedKotlinDaemonJvmArguments()
abstract Property<KotlinCompilerExecutionStrategy>
getCompilerExecutionStrategy()
abstract ListProperty<String>
getKotlinDaemonJvmArguments()
abstract ConfigurableFileCollection
getFriendPaths()
abstract Property<String>
getModuleName()
abstract Property<Boolean>
getMultiPlatformEnabled()
abstract ConfigurableFileCollection
getPluginClasspath()
abstract ListProperty<CompilerPluginConfig>
getPluginOptions()
abstract Property<String>
getSourceSetName()
abstract Property<Boolean>
getUseModuleDetection()
abstract Property<KotlinJvmOptions>
getParentKotlinOptions()
KotlinJavaToolchain
getKotlinJavaToolchain()
abstract ConfigurableFileCollection
getKaptClasspath()
abstract DirectoryProperty
getStubsDir()
final Boolean
getIfKaptClasspathIsPresent()
Unit
setupCompilerArgs(K2JVMCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)
-
Methods inherited from class org.jetbrains.kotlin.gradle.internal.KaptGenerateStubsTask
createCompilerArgs, setSource, source
-
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.KotlinCompile
execute
-
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile
disallowSourceChanges, exclude, exclude, exclude, exclude, getExcludes, getIncludes, include, include, include, include, setExcludes, setIncludes
-
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompileTool
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Methods inherited from class org.gradle.api.DefaultTask
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects
-
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
kotlinOptions, kotlinOptions, kotlinOptions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getLibraries
@Internal() abstract ConfigurableFileCollection getLibraries()
-
getVerbose
@Input() abstract Property<Boolean> getVerbose()
-
getAdditionalSources
@InputFiles()@IgnoreEmptyDirectories()@PathSensitive(value = PathSensitivity.RELATIVE)@Incremental() abstract ConfigurableFileCollection getAdditionalSources()
Changes in this additional sources will trigger stubs regeneration, but the sources themselves will not be used to find kapt annotations and generate stubs.
-
getSources
@Incremental()@InputFiles()@IgnoreEmptyDirectories()@PathSensitive(value = PathSensitivity.RELATIVE) FileCollection getSources()
-
getJavaPackagePrefix
@Input()@Optional() final String getJavaPackagePrefix()
A package prefix that is used for locating Java sources in a directory structure with non-full-depth packages.
Example: a Java source file with
package com.example.my.package
is located in directorysrc/main/java/my/package
. Then, for the Kotlin compilation to locate the source file, use package prefix"com.example"
-
setJavaPackagePrefix
final Unit setJavaPackagePrefix(String javaPackagePrefix)
A package prefix that is used for locating Java sources in a directory structure with non-full-depth packages.
Example: a Java source file with
package com.example.my.package
is located in directorysrc/main/java/my/package
. Then, for the Kotlin compilation to locate the source file, use package prefix"com.example"
-
getUsePreciseJavaTracking
@Input() final Boolean getUsePreciseJavaTracking()
-
setUsePreciseJavaTracking
final Unit setUsePreciseJavaTracking(Boolean usePreciseJavaTracking)
-
getClasspath
@Internal() final FileCollection getClasspath()
-
setClasspath
final Unit setClasspath(@Deprecated(message = "Replaced with 'libraries' input", replaceWith = @ReplaceWith(imports = {}, expression = "libraries")) FileCollection classpath)
-
getUseKotlinAbiSnapshot
@Input() abstract Property<Boolean> getUseKotlinAbiSnapshot()
-
getClasspathSnapshotProperties
abstract KotlinCompile.ClasspathSnapshotProperties getClasspathSnapshotProperties()
-
getKotlinJavaToolchainProvider
final Provider<KotlinJavaToolchain> getKotlinJavaToolchainProvider()
-
getDisableMultiModuleIC
@Input() final Boolean getDisableMultiModuleIC()
-
getJavaSources
@Incremental()@InputFiles()@IgnoreEmptyDirectories()@PathSensitive(value = PathSensitivity.RELATIVE) FileCollection getJavaSources()
-
getKotlinOptions
KotlinJvmOptions getKotlinOptions()
-
getIncremental
@Internal() final Boolean getIncremental()
-
setIncremental
final Unit setIncremental(Boolean incremental)
-
getStartParameters
@Internal() final ArrayList<String> getStartParameters()
-
getOwnModuleName
@Input() abstract Property<String> getOwnModuleName()
-
getAbiSnapshotFile
@Internal() final Provider<RegularFile> getAbiSnapshotFile()
-
getAbiSnapshotRelativePath
@Input() final Property<String> getAbiSnapshotRelativePath()
-
getMetrics
@Internal() Property<BuildMetricsReporter> getMetrics()
-
getDestinationDirectory
abstract DirectoryProperty getDestinationDirectory()
-
getSerializedCompilerArguments
@Internal() List<String> getSerializedCompilerArguments()
-
getDefaultSerializedCompilerArguments
@Internal() List<String> getDefaultSerializedCompilerArguments()
-
getSerializedCompilerArgumentsIgnoreClasspathIssues
@Internal() List<String> getSerializedCompilerArgumentsIgnoreClasspathIssues()
-
getFilteredArgumentsMap
@Input() Map<String, String> getFilteredArgumentsMap()
-
getLocalStateDirectories
@Internal() abstract ConfigurableFileCollection getLocalStateDirectories()
-
getNormalizedKotlinDaemonJvmArguments
@Internal() Provider<List<String>> getNormalizedKotlinDaemonJvmArguments()
-
getCompilerExecutionStrategy
abstract Property<KotlinCompilerExecutionStrategy> getCompilerExecutionStrategy()
-
getKotlinDaemonJvmArguments
abstract ListProperty<String> getKotlinDaemonJvmArguments()
-
getFriendPaths
abstract ConfigurableFileCollection getFriendPaths()
-
getModuleName
abstract Property<String> getModuleName()
-
getMultiPlatformEnabled
abstract Property<Boolean> getMultiPlatformEnabled()
-
getPluginClasspath
abstract ConfigurableFileCollection getPluginClasspath()
-
getPluginOptions
abstract ListProperty<CompilerPluginConfig> getPluginOptions()
-
getSourceSetName
abstract Property<String> getSourceSetName()
-
getUseModuleDetection
abstract Property<Boolean> getUseModuleDetection()
-
getParentKotlinOptions
abstract Property<KotlinJvmOptions> getParentKotlinOptions()
-
getKotlinJavaToolchain
KotlinJavaToolchain getKotlinJavaToolchain()
-
getKaptClasspath
abstract ConfigurableFileCollection getKaptClasspath()
-
getStubsDir
abstract DirectoryProperty getStubsDir()
-
getIfKaptClasspathIsPresent
@Input() final Boolean getIfKaptClasspathIsPresent()
-
setupCompilerArgs
Unit setupCompilerArgs(K2JVMCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)
-
-
-
-