-
- All Implemented Interfaces:
-
com.google.devtools.ksp.gradle.KspTask,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.KotlinCompileTool,org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile,org.jetbrains.kotlin.gradle.tasks.UsesKotlinJavaToolchain
@CacheableTask() public abstract class KspTaskJvm extends KotlinCompile implements KspTask
-
-
Field Summary
Fields Modifier and Type Field Description private final ConfigurableFileCollectionclasspathStructureprivate BooleanisIntermoduleIncrementalprivate final FileCollectionsourcesprivate final FileCollectionjavaSourcesprivate final Provider<RegularFile>abiSnapshotFileprivate final Property<String>abiSnapshotRelativePathprivate FileCollectionclasspathprivate final KotlinCompile.ClasspathSnapshotPropertiesclasspathSnapshotPropertiesprivate final Property<KotlinCompilerExecutionStrategy>compilerExecutionStrategyprivate final List<String>defaultSerializedCompilerArgumentsprivate final DirectoryPropertydestinationDirectoryprivate final BooleandisableMultiModuleICprivate final Map<String, String>filteredArgumentsMapprivate final ConfigurableFileCollectionfriendPathsprivate Booleanincrementalprivate StringjavaPackagePrefixprivate final ListProperty<String>kotlinDaemonJvmArgumentsprivate final KotlinJavaToolchainkotlinJavaToolchainprivate final Provider<KotlinJavaToolchain>kotlinJavaToolchainProviderprivate final KotlinJvmOptionskotlinOptionsprivate final ConfigurableFileCollectionlibrariesprivate final ConfigurableFileCollectionlocalStateDirectoriesprivate final Property<BuildMetricsReporter>metricsprivate final Property<String>moduleNameprivate final Property<Boolean>multiPlatformEnabledprivate final Provider<List<String>>normalizedKotlinDaemonJvmArgumentsprivate final Property<String>ownModuleNameprivate final Property<KotlinJvmOptions>parentKotlinOptionsprivate final ConfigurableFileCollectionpluginClasspathprivate final ListProperty<CompilerPluginConfig>pluginOptionsprivate final List<String>serializedCompilerArgumentsprivate final List<String>serializedCompilerArgumentsIgnoreClasspathIssuesprivate final Property<String>sourceSetNameprivate final ArrayList<String>startParametersprivate final Property<Boolean>useKotlinAbiSnapshotprivate final Property<Boolean>useModuleDetectionprivate BooleanusePreciseJavaTrackingprivate final ListProperty<SubpluginOption>optionsprivate final ListProperty<CommandLineArgumentProvider>commandLineArgumentProvidersprivate Filedestinationprivate final ConfigurableFileCollectionoverridePluginClasspathprivate BooleanblockOtherCompilerPluginsprivate final MapProperty<String, String>apOptionsprivate final ConfigurableFileCollectionprocessorClasspathprivate final DirectoryPropertykspCacheDirprivate BooleanisKspIncremental
-
Constructor Summary
Constructors Constructor Description KspTaskJvm(WorkerExecutor workerExecutor, ObjectFactory objectFactory)
-
Method Summary
Modifier and Type Method Description abstract ConfigurableFileCollectiongetClasspathStructure()final BooleangetIsIntermoduleIncremental()final UnitsetIsIntermoduleIncremental(Boolean isIntermoduleIncremental)FileCollectiongetSources()FileCollectiongetJavaSources()final Provider<RegularFile>getAbiSnapshotFile()final Property<String>getAbiSnapshotRelativePath()final FileCollectiongetClasspath()final UnitsetClasspath(FileCollection classpath)abstract KotlinCompile.ClasspathSnapshotPropertiesgetClasspathSnapshotProperties()abstract Property<KotlinCompilerExecutionStrategy>getCompilerExecutionStrategy()List<String>getDefaultSerializedCompilerArguments()abstract DirectoryPropertygetDestinationDirectory()final BooleangetDisableMultiModuleIC()Map<String, String>getFilteredArgumentsMap()abstract ConfigurableFileCollectiongetFriendPaths()final BooleangetIncremental()final UnitsetIncremental(Boolean incremental)final StringgetJavaPackagePrefix()final UnitsetJavaPackagePrefix(String javaPackagePrefix)abstract ListProperty<String>getKotlinDaemonJvmArguments()KotlinJavaToolchaingetKotlinJavaToolchain()final Provider<KotlinJavaToolchain>getKotlinJavaToolchainProvider()KotlinJvmOptionsgetKotlinOptions()abstract ConfigurableFileCollectiongetLibraries()abstract ConfigurableFileCollectiongetLocalStateDirectories()Property<BuildMetricsReporter>getMetrics()abstract Property<String>getModuleName()abstract Property<Boolean>getMultiPlatformEnabled()Provider<List<String>>getNormalizedKotlinDaemonJvmArguments()abstract Property<String>getOwnModuleName()abstract Property<KotlinJvmOptions>getParentKotlinOptions()abstract ConfigurableFileCollectiongetPluginClasspath()abstract ListProperty<CompilerPluginConfig>getPluginOptions()List<String>getSerializedCompilerArguments()List<String>getSerializedCompilerArgumentsIgnoreClasspathIssues()abstract Property<String>getSourceSetName()final ArrayList<String>getStartParameters()abstract Property<Boolean>getUseKotlinAbiSnapshot()abstract Property<Boolean>getUseModuleDetection()final BooleangetUsePreciseJavaTracking()final UnitsetUsePreciseJavaTracking(Boolean usePreciseJavaTracking)abstract ListProperty<SubpluginOption>getOptions()abstract ListProperty<CommandLineArgumentProvider>getCommandLineArgumentProviders()abstract FilegetDestination()abstract UnitsetDestination(File destination)abstract ConfigurableFileCollectiongetOverridePluginClasspath()abstract BooleangetBlockOtherCompilerPlugins()abstract UnitsetBlockOtherCompilerPlugins(Boolean blockOtherCompilerPlugins)abstract MapProperty<String, String>getApOptions()abstract ConfigurableFileCollectiongetProcessorClasspath()abstract DirectoryPropertygetKspCacheDir()Output directory that contains caches necessary to support incremental annotation processing. abstract BooleangetIsKspIncremental()abstract UnitsetIsKspIncremental(Boolean isKspIncremental)UnitconfigureCompilation(KotlinCompilationData<?> kotlinCompilation, AbstractKotlinCompile<?> kotlinCompile)UnitsetupCompilerArgs(K2JVMCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)final UnitcallCompilerAsync$kotlin_gradle_plugin_common(K2JVMCompilerArguments args, Set<File> kotlinSources, InputChanges inputChanges, TaskOutputsBackup taskOutputsBackup)-
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.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 com.google.devtools.ksp.gradle.KspTaskJvm
createCompilerArgs, setSource, source -
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.KotlinCompile
execute -
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
-
getClasspathStructure
@PathSensitive(value = PathSensitivity.NONE)@Optional()@InputFiles()@Incremental() abstract ConfigurableFileCollection getClasspathStructure()
-
getIsIntermoduleIncremental
@Input() final Boolean getIsIntermoduleIncremental()
-
setIsIntermoduleIncremental
final Unit setIsIntermoduleIncremental(Boolean isIntermoduleIncremental)
-
getSources
@InputFiles()@SkipWhenEmpty()@IgnoreEmptyDirectories()@PathSensitive(value = PathSensitivity.RELATIVE) FileCollection getSources()
-
getJavaSources
@InputFiles()@SkipWhenEmpty()@IgnoreEmptyDirectories()@PathSensitive(value = PathSensitivity.RELATIVE) FileCollection getJavaSources()
-
getAbiSnapshotFile
final Provider<RegularFile> getAbiSnapshotFile()
-
getAbiSnapshotRelativePath
final Property<String> getAbiSnapshotRelativePath()
-
getClasspath
final FileCollection getClasspath()
-
setClasspath
final Unit setClasspath(FileCollection classpath)
-
getClasspathSnapshotProperties
abstract KotlinCompile.ClasspathSnapshotProperties getClasspathSnapshotProperties()
-
getCompilerExecutionStrategy
abstract Property<KotlinCompilerExecutionStrategy> getCompilerExecutionStrategy()
-
getDefaultSerializedCompilerArguments
List<String> getDefaultSerializedCompilerArguments()
-
getDestinationDirectory
abstract DirectoryProperty getDestinationDirectory()
-
getDisableMultiModuleIC
final Boolean getDisableMultiModuleIC()
-
getFilteredArgumentsMap
Map<String, String> getFilteredArgumentsMap()
-
getFriendPaths
abstract ConfigurableFileCollection getFriendPaths()
-
getIncremental
final Boolean getIncremental()
-
setIncremental
final Unit setIncremental(Boolean incremental)
-
getJavaPackagePrefix
final String getJavaPackagePrefix()
-
setJavaPackagePrefix
final Unit setJavaPackagePrefix(String javaPackagePrefix)
-
getKotlinDaemonJvmArguments
abstract ListProperty<String> getKotlinDaemonJvmArguments()
-
getKotlinJavaToolchain
KotlinJavaToolchain getKotlinJavaToolchain()
-
getKotlinJavaToolchainProvider
final Provider<KotlinJavaToolchain> getKotlinJavaToolchainProvider()
-
getKotlinOptions
KotlinJvmOptions getKotlinOptions()
-
getLibraries
abstract ConfigurableFileCollection getLibraries()
-
getLocalStateDirectories
abstract ConfigurableFileCollection getLocalStateDirectories()
-
getMetrics
Property<BuildMetricsReporter> getMetrics()
-
getModuleName
abstract Property<String> getModuleName()
-
getMultiPlatformEnabled
abstract Property<Boolean> getMultiPlatformEnabled()
-
getNormalizedKotlinDaemonJvmArguments
Provider<List<String>> getNormalizedKotlinDaemonJvmArguments()
-
getOwnModuleName
abstract Property<String> getOwnModuleName()
-
getParentKotlinOptions
abstract Property<KotlinJvmOptions> getParentKotlinOptions()
-
getPluginClasspath
abstract ConfigurableFileCollection getPluginClasspath()
-
getPluginOptions
abstract ListProperty<CompilerPluginConfig> getPluginOptions()
-
getSerializedCompilerArguments
List<String> getSerializedCompilerArguments()
-
getSerializedCompilerArgumentsIgnoreClasspathIssues
List<String> getSerializedCompilerArgumentsIgnoreClasspathIssues()
-
getSourceSetName
abstract Property<String> getSourceSetName()
-
getStartParameters
final ArrayList<String> getStartParameters()
-
getUseKotlinAbiSnapshot
abstract Property<Boolean> getUseKotlinAbiSnapshot()
-
getUseModuleDetection
abstract Property<Boolean> getUseModuleDetection()
-
getUsePreciseJavaTracking
final Boolean getUsePreciseJavaTracking()
-
setUsePreciseJavaTracking
final Unit setUsePreciseJavaTracking(Boolean usePreciseJavaTracking)
-
getOptions
@Internal() abstract ListProperty<SubpluginOption> getOptions()
-
getCommandLineArgumentProviders
abstract ListProperty<CommandLineArgumentProvider> getCommandLineArgumentProviders()
-
getDestination
@OutputDirectory() abstract File getDestination()
-
setDestination
abstract Unit setDestination(File destination)
-
getOverridePluginClasspath
@Optional()@Classpath() abstract ConfigurableFileCollection getOverridePluginClasspath()
-
getBlockOtherCompilerPlugins
@Input() abstract Boolean getBlockOtherCompilerPlugins()
-
setBlockOtherCompilerPlugins
abstract Unit setBlockOtherCompilerPlugins(Boolean blockOtherCompilerPlugins)
-
getApOptions
@Input() abstract MapProperty<String, String> getApOptions()
-
getProcessorClasspath
@Classpath() abstract ConfigurableFileCollection getProcessorClasspath()
-
getKspCacheDir
@LocalState() abstract DirectoryProperty getKspCacheDir()
Output directory that contains caches necessary to support incremental annotation processing.
-
getIsKspIncremental
@Input() abstract Boolean getIsKspIncremental()
-
setIsKspIncremental
abstract Unit setIsKspIncremental(Boolean isKspIncremental)
-
configureCompilation
Unit configureCompilation(KotlinCompilationData<?> kotlinCompilation, AbstractKotlinCompile<?> kotlinCompile)
-
setupCompilerArgs
Unit setupCompilerArgs(K2JVMCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)
-
callCompilerAsync$kotlin_gradle_plugin_common
final Unit callCompilerAsync$kotlin_gradle_plugin_common(K2JVMCompilerArguments args, Set<File> kotlinSources, InputChanges inputChanges, TaskOutputsBackup taskOutputsBackup)
-
-
-
-