-
- 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.KotlinJsCompile,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
@CacheableTask() public abstract class KspTaskJS extends Kotlin2JsCompile implements KspTask
-
-
Field Summary
Fields Modifier and Type Field Description private final FileCollectionsourcesprivate final Provider<RegularFile>abiSnapshotFileprivate final Property<String>abiSnapshotRelativePathprivate final Property<KotlinCompilerExecutionStrategy>compilerExecutionStrategyprivate final List<String>defaultSerializedCompilerArgumentsprivate final DirectoryPropertydestinationDirectoryprivate final Map<String, String>filteredArgumentsMapprivate final ConfigurableFileCollectionfriendPathsprivate Booleanincrementalprivate final ListProperty<String>kotlinDaemonJvmArgumentsprivate final KotlinJsOptionskotlinOptionsprivate final ConfigurableFileCollectionlibrariesprivate final ConfigurableFileCollectionlocalStateDirectoriesprivate final Property<BuildMetricsReporter>metricsprivate final Property<String>moduleNameprivate final Property<Boolean>multiPlatformEnabledprivate final Provider<List<String>>normalizedKotlinDaemonJvmArgumentsprivate final RegularFilePropertyoptionalOutputFileprivate final FileoutputFileprivate final Property<File>outputFilePropertyprivate final Property<String>ownModuleNameprivate 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>useModuleDetectionprivate 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 KspTaskJS(ObjectFactory objectFactory, WorkerExecutor workerExecutor)
-
Method Summary
Modifier and Type Method Description FileCollectiongetSources()final Provider<RegularFile>getAbiSnapshotFile()final Property<String>getAbiSnapshotRelativePath()abstract Property<KotlinCompilerExecutionStrategy>getCompilerExecutionStrategy()List<String>getDefaultSerializedCompilerArguments()abstract DirectoryPropertygetDestinationDirectory()Map<String, String>getFilteredArgumentsMap()abstract ConfigurableFileCollectiongetFriendPaths()final BooleangetIncremental()final UnitsetIncremental(Boolean incremental)abstract ListProperty<String>getKotlinDaemonJvmArguments()KotlinJsOptionsgetKotlinOptions()abstract ConfigurableFileCollectiongetLibraries()abstract ConfigurableFileCollectiongetLocalStateDirectories()Property<BuildMetricsReporter>getMetrics()abstract Property<String>getModuleName()abstract Property<Boolean>getMultiPlatformEnabled()Provider<List<String>>getNormalizedKotlinDaemonJvmArguments()abstract RegularFilePropertygetOptionalOutputFile()final FilegetOutputFile()abstract Property<File>getOutputFileProperty()abstract Property<String>getOwnModuleName()abstract ConfigurableFileCollectiongetPluginClasspath()abstract ListProperty<CompilerPluginConfig>getPluginOptions()List<String>getSerializedCompilerArguments()List<String>getSerializedCompilerArgumentsIgnoreClasspathIssues()abstract Property<String>getSourceSetName()final ArrayList<String>getStartParameters()abstract Property<Boolean>getUseModuleDetection()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(K2JSCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)final UnitcallCompilerAsync$kotlin_gradle_plugin_common(K2JSCompilerArguments args, Set<File> kotlinSources, InputChanges inputChanges, TaskOutputsBackup taskOutputsBackup)final BooleanisIncrementalCompilationEnabled$kotlin_gradle_plugin_common()-
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.KspTaskJS
createCompilerArgs, processArgs -
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile
disallowSourceChanges, exclude, exclude, exclude, exclude, getExcludes, getIncludes, include, include, include, include, setExcludes, setIncludes, setSource, source -
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile
execute -
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile
kotlinOptions, kotlinOptions, kotlinOptions -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getSources
@InputFiles()@SkipWhenEmpty()@IgnoreEmptyDirectories()@PathSensitive(value = PathSensitivity.RELATIVE) FileCollection getSources()
-
getAbiSnapshotFile
final Provider<RegularFile> getAbiSnapshotFile()
-
getAbiSnapshotRelativePath
final Property<String> getAbiSnapshotRelativePath()
-
getCompilerExecutionStrategy
abstract Property<KotlinCompilerExecutionStrategy> getCompilerExecutionStrategy()
-
getDefaultSerializedCompilerArguments
List<String> getDefaultSerializedCompilerArguments()
-
getDestinationDirectory
abstract DirectoryProperty getDestinationDirectory()
-
getFilteredArgumentsMap
Map<String, String> getFilteredArgumentsMap()
-
getFriendPaths
abstract ConfigurableFileCollection getFriendPaths()
-
getIncremental
final Boolean getIncremental()
-
setIncremental
final Unit setIncremental(Boolean incremental)
-
getKotlinDaemonJvmArguments
abstract ListProperty<String> getKotlinDaemonJvmArguments()
-
getKotlinOptions
KotlinJsOptions 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()
-
getOptionalOutputFile
abstract RegularFileProperty getOptionalOutputFile()
-
getOutputFile
final File getOutputFile()
-
getOutputFileProperty
abstract Property<File> getOutputFileProperty()
-
getOwnModuleName
abstract Property<String> getOwnModuleName()
-
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()
-
getUseModuleDetection
abstract Property<Boolean> getUseModuleDetection()
-
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(K2JSCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)
-
callCompilerAsync$kotlin_gradle_plugin_common
final Unit callCompilerAsync$kotlin_gradle_plugin_common(K2JSCompilerArguments args, Set<File> kotlinSources, InputChanges inputChanges, TaskOutputsBackup taskOutputsBackup)
-
isIncrementalCompilationEnabled$kotlin_gradle_plugin_common
final Boolean isIncrementalCompilationEnabled$kotlin_gradle_plugin_common()
-
-
-
-