-
- 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.util.Configurable,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
public abstract class KaptWithKotlincTask extends KaptTask implements CompilerArgumentAwareWithInput<K2JVMCompilerArguments>, CompileUsingKotlinDaemonWithNormalization
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classKaptWithKotlincTask.Configurator
-
Field Summary
Fields Modifier and Type Field Description private final ConfigurableFileCollectionpluginClasspathprivate final Provider<GradleCompileTaskProvider>taskProviderprivate final ListProperty<String>kotlinDaemonJvmArgumentsprivate final ConfigurableFileCollectionkaptClasspathprivate final ConfigurableFileCollectionkaptExternalClasspathprivate final ConfigurableFileCollectioncompilerClasspathprivate final ConfigurableFileCollectionclasspathStructureprivate final DirectoryPropertyincAptCacheprivate FiledestinationDirprivate FilekotlinSourcesDestinationDirprivate final ConfigurableFileCollectionclasspathprivate final Provider<KotlinJavaToolchain>kotlinJavaToolchainProviderprivate BooleanuseBuildCacheprivate final Property<String>sourceSetNameprivate final ConfigurableFileCollectionsourceprivate final Property<BuildMetricsReporter>metricsprivate final Property<Boolean>verboseprivate final ConfigurableFileCollectionlocalStateDirectoriesprivate final KotlinJavaToolchainkotlinJavaToolchainprivate final List<String>serializedCompilerArgumentsprivate final List<String>defaultSerializedCompilerArgumentsprivate final List<String>serializedCompilerArgumentsIgnoreClasspathIssuesprivate final Map<String, String>filteredArgumentsMapprivate final Provider<List<String>>normalizedKotlinDaemonJvmArgumentsprivate final Property<KotlinCompilerExecutionStrategy>compilerExecutionStrategy
-
Constructor Summary
Constructors Constructor Description KaptWithKotlincTask(ObjectFactory objectFactory)
-
Method Summary
Modifier and Type Method Description abstract ConfigurableFileCollectiongetPluginClasspath()final Provider<GradleCompileTaskProvider>getTaskProvider()abstract ListProperty<String>getKotlinDaemonJvmArguments()abstract ConfigurableFileCollectiongetKaptClasspath()abstract ConfigurableFileCollectiongetKaptExternalClasspath()abstract ConfigurableFileCollectiongetCompilerClasspath()abstract ConfigurableFileCollectiongetClasspathStructure()abstract DirectoryPropertygetIncAptCache()Output directory that contains caches necessary to support incremental annotation processing. final FilegetDestinationDir()final UnitsetDestinationDir(File destinationDir)final FilegetKotlinSourcesDestinationDir()final UnitsetKotlinSourcesDestinationDir(File kotlinSourcesDestinationDir)abstract ConfigurableFileCollectiongetClasspath()final Provider<KotlinJavaToolchain>getKotlinJavaToolchainProvider()final BooleangetUseBuildCache()final UnitsetUseBuildCache(Boolean useBuildCache)abstract Property<String>getSourceSetName()Needed for the model builder. abstract ConfigurableFileCollectiongetSource()Property<BuildMetricsReporter>getMetrics()abstract Property<Boolean>getVerbose()abstract ConfigurableFileCollectiongetLocalStateDirectories()KotlinJavaToolchaingetKotlinJavaToolchain()List<String>getSerializedCompilerArguments()List<String>getDefaultSerializedCompilerArguments()List<String>getSerializedCompilerArgumentsIgnoreClasspathIssues()Map<String, String>getFilteredArgumentsMap()Provider<List<String>>getNormalizedKotlinDaemonJvmArguments()abstract Property<KotlinCompilerExecutionStrategy>getCompilerExecutionStrategy()K2JVMCompilerArgumentscreateCompilerArgs()UnitsetupCompilerArgs(K2JVMCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)final Unitcompile(InputChanges inputChanges)-
Methods inherited from class org.jetbrains.kotlin.gradle.internal.KaptTask
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getPluginClasspath
@NormalizeLineEndings()@Classpath() abstract ConfigurableFileCollection getPluginClasspath()
-
getTaskProvider
@Internal() final Provider<GradleCompileTaskProvider> getTaskProvider()
-
getKotlinDaemonJvmArguments
abstract ListProperty<String> getKotlinDaemonJvmArguments()
-
getKaptClasspath
@NormalizeLineEndings()@Classpath() abstract ConfigurableFileCollection getKaptClasspath()
-
getKaptExternalClasspath
@NormalizeLineEndings()@Classpath() abstract ConfigurableFileCollection getKaptExternalClasspath()
-
getCompilerClasspath
@NormalizeLineEndings()@Classpath() abstract ConfigurableFileCollection getCompilerClasspath()
-
getClasspathStructure
@PathSensitive(value = PathSensitivity.NONE)@Incremental()@NormalizeLineEndings()@IgnoreEmptyDirectories()@Optional()@InputFiles() abstract ConfigurableFileCollection getClasspathStructure()
-
getIncAptCache
@LocalState() abstract DirectoryProperty getIncAptCache()
Output directory that contains caches necessary to support incremental annotation processing.
-
getDestinationDir
@OutputDirectory() final File getDestinationDir()
-
setDestinationDir
final Unit setDestinationDir(File destinationDir)
-
getKotlinSourcesDestinationDir
@OutputDirectory() final File getKotlinSourcesDestinationDir()
-
setKotlinSourcesDestinationDir
final Unit setKotlinSourcesDestinationDir(File kotlinSourcesDestinationDir)
-
getClasspath
@Internal() abstract ConfigurableFileCollection getClasspath()
-
getKotlinJavaToolchainProvider
final Provider<KotlinJavaToolchain> getKotlinJavaToolchainProvider()
-
getUseBuildCache
@Internal() final Boolean getUseBuildCache()
-
setUseBuildCache
final Unit setUseBuildCache(Boolean useBuildCache)
-
getSourceSetName
@Internal() abstract Property<String> getSourceSetName()
Needed for the model builder.
-
getSource
@InputFiles()@IgnoreEmptyDirectories()@NormalizeLineEndings()@Incremental()@PathSensitive(value = PathSensitivity.RELATIVE) abstract ConfigurableFileCollection getSource()
-
getMetrics
@Internal() Property<BuildMetricsReporter> getMetrics()
-
getVerbose
@Input() abstract Property<Boolean> getVerbose()
-
getLocalStateDirectories
@Internal() abstract ConfigurableFileCollection getLocalStateDirectories()
-
getKotlinJavaToolchain
KotlinJavaToolchain getKotlinJavaToolchain()
-
getSerializedCompilerArguments
@Internal() List<String> getSerializedCompilerArguments()
-
getDefaultSerializedCompilerArguments
@Internal() List<String> getDefaultSerializedCompilerArguments()
-
getSerializedCompilerArgumentsIgnoreClasspathIssues
@Internal() List<String> getSerializedCompilerArgumentsIgnoreClasspathIssues()
-
getFilteredArgumentsMap
@Input() Map<String, String> getFilteredArgumentsMap()
-
getNormalizedKotlinDaemonJvmArguments
@Internal() Provider<List<String>> getNormalizedKotlinDaemonJvmArguments()
-
getCompilerExecutionStrategy
abstract Property<KotlinCompilerExecutionStrategy> getCompilerExecutionStrategy()
-
createCompilerArgs
K2JVMCompilerArguments createCompilerArgs()
-
setupCompilerArgs
Unit setupCompilerArgs(K2JVMCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)
-
-
-
-