-
- 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.CompileUsingKotlinDaemon,org.jetbrains.kotlin.gradle.tasks.CompileUsingKotlinDaemonWithNormalization,org.jetbrains.kotlin.gradle.tasks.UsesKotlinJavaToolchain
@CacheableTask() public abstract class KaptGenerateStubsTask extends KotlinCompile
-
-
Field Summary
Fields Modifier and Type Field Description private final DirectoryPropertystubsDirprivate List<File>generatedSourcesDirsprivate final ConfigurableFileCollectionkaptClasspathprivate final Property<Boolean>verboseprivate final ConfigurableFileCollectionadditionalSourcesprivate final FileCollectionsourcesprivate final FileCollectionjavaSourcesprivate StringjavaPackagePrefixprivate BooleanusePreciseJavaTrackingprivate final ConfigurableFileCollectionlibrariesprivate final Property<Boolean>useKotlinAbiSnapshotprivate final KotlinCompile.ClasspathSnapshotPropertiesclasspathSnapshotPropertiesprivate final Provider<KotlinJavaToolchain>kotlinJavaToolchainProviderprivate final BooleandisableMultiModuleICprivate final KotlinJvmOptionskotlinOptionsprivate Booleanincrementalprivate final ArrayList<String>startParametersprivate final ConfigurableFileCollectionpluginClasspathprivate final Provider<RegularFile>abiSnapshotFileprivate final Property<String>abiSnapshotRelativePathprivate final ConfigurableFileCollectionfriendPathsprivate final ListProperty<String>kotlinDaemonJvmArgumentsprivate final DirectoryPropertydestinationDirectoryprivate final Property<BuildMetricsReporter>metricsprivate final List<String>serializedCompilerArgumentsprivate final List<String>defaultSerializedCompilerArgumentsprivate final List<String>serializedCompilerArgumentsIgnoreClasspathIssuesprivate final Map<String, String>filteredArgumentsMapprivate final ConfigurableFileCollectionlocalStateDirectoriesprivate final Provider<List<String>>normalizedKotlinDaemonJvmArgumentsprivate final Property<KotlinCompilerExecutionStrategy>compilerExecutionStrategyprivate final KotlinJavaToolchainkotlinJavaToolchain
-
Constructor Summary
Constructors Constructor Description KaptGenerateStubsTask(WorkerExecutor workerExecutor, ObjectFactory objectFactory)
-
Method Summary
Modifier and Type Method Description abstract DirectoryPropertygetStubsDir()final List<File>getGeneratedSourcesDirs()final UnitsetGeneratedSourcesDirs(List<File> generatedSourcesDirs)abstract ConfigurableFileCollectiongetKaptClasspath()abstract Property<Boolean>getVerbose()abstract ConfigurableFileCollectiongetAdditionalSources()Changes in this additional sources will trigger stubs regeneration, but the sources themselves will not be used to find kapt annotations and generate stubs. FileCollectiongetSources()FileCollectiongetJavaSources()final StringgetJavaPackagePrefix()A package prefix that is used for locating Java sources in a directory structure with non-full-depth packages. final UnitsetJavaPackagePrefix(String javaPackagePrefix)A package prefix that is used for locating Java sources in a directory structure with non-full-depth packages. final BooleangetUsePreciseJavaTracking()final UnitsetUsePreciseJavaTracking(Boolean usePreciseJavaTracking)abstract ConfigurableFileCollectiongetLibraries()abstract Property<Boolean>getUseKotlinAbiSnapshot()abstract KotlinCompile.ClasspathSnapshotPropertiesgetClasspathSnapshotProperties()final Provider<KotlinJavaToolchain>getKotlinJavaToolchainProvider()final BooleangetDisableMultiModuleIC()KotlinJvmOptionsgetKotlinOptions()final BooleangetIncremental()final UnitsetIncremental(Boolean incremental)final ArrayList<String>getStartParameters()ConfigurableFileCollectiongetPluginClasspath()final Provider<RegularFile>getAbiSnapshotFile()final Property<String>getAbiSnapshotRelativePath()final ConfigurableFileCollectiongetFriendPaths()abstract ListProperty<String>getKotlinDaemonJvmArguments()abstract DirectoryPropertygetDestinationDirectory()Property<BuildMetricsReporter>getMetrics()List<String>getSerializedCompilerArguments()List<String>getDefaultSerializedCompilerArguments()List<String>getSerializedCompilerArgumentsIgnoreClasspathIssues()Map<String, String>getFilteredArgumentsMap()abstract ConfigurableFileCollectiongetLocalStateDirectories()Provider<List<String>>getNormalizedKotlinDaemonJvmArguments()abstract Property<KotlinCompilerExecutionStrategy>getCompilerExecutionStrategy()KotlinJavaToolchaingetKotlinJavaToolchain()final BooleangetIfKaptClasspathIsPresent()UnitsetupCompilerArgs(K2JVMCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)-
Methods inherited from class org.jetbrains.kotlin.gradle.internal.KaptGenerateStubsTask
createCompilerArgs, getClasspath, setClasspath, setSource, setSource -
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.dsl.KotlinJvmCompile
kotlinOptions, kotlinOptions, kotlinOptions -
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()
-
getGeneratedSourcesDirs
@Internal() final List<File> getGeneratedSourcesDirs()
-
setGeneratedSourcesDirs
final Unit setGeneratedSourcesDirs(List<File> generatedSourcesDirs)
-
getKaptClasspath
@Internal(value = "Not an input, just passed as kapt args. ") abstract ConfigurableFileCollection getKaptClasspath()
-
getVerbose
@Input() abstract Property<Boolean> getVerbose()
-
getAdditionalSources
@NormalizeLineEndings()@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()@NormalizeLineEndings()@IgnoreEmptyDirectories()@PathSensitive(value = PathSensitivity.RELATIVE) FileCollection getSources()
-
getJavaSources
FileCollection getJavaSources()
-
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.packageis 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.packageis 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)
-
getLibraries
@Internal() abstract ConfigurableFileCollection getLibraries()
-
getUseKotlinAbiSnapshot
@Input() abstract Property<Boolean> getUseKotlinAbiSnapshot()
-
getClasspathSnapshotProperties
abstract KotlinCompile.ClasspathSnapshotProperties getClasspathSnapshotProperties()
-
getKotlinJavaToolchainProvider
final Provider<KotlinJavaToolchain> getKotlinJavaToolchainProvider()
-
getDisableMultiModuleIC
@Input() final Boolean getDisableMultiModuleIC()
-
getKotlinOptions
KotlinJvmOptions getKotlinOptions()
-
getIncremental
@Internal() final Boolean getIncremental()
-
setIncremental
final Unit setIncremental(Boolean incremental)
-
getStartParameters
@Internal() final ArrayList<String> getStartParameters()
-
getPluginClasspath
@NormalizeLineEndings()@Classpath() ConfigurableFileCollection getPluginClasspath()
-
getAbiSnapshotFile
@Internal() final Provider<RegularFile> getAbiSnapshotFile()
-
getAbiSnapshotRelativePath
@Input() final Property<String> getAbiSnapshotRelativePath()
-
getFriendPaths
@Internal() final ConfigurableFileCollection getFriendPaths()
-
getKotlinDaemonJvmArguments
abstract ListProperty<String> getKotlinDaemonJvmArguments()
-
getDestinationDirectory
@OutputDirectory() abstract DirectoryProperty getDestinationDirectory()
-
getMetrics
@Internal() Property<BuildMetricsReporter> getMetrics()
-
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()
-
getKotlinJavaToolchain
KotlinJavaToolchain getKotlinJavaToolchain()
-
getIfKaptClasspathIsPresent
@Input() final Boolean getIfKaptClasspathIsPresent()
-
setupCompilerArgs
Unit setupCompilerArgs(K2JVMCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)
-
-
-
-