-
- 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.KotlinJsDce
,org.jetbrains.kotlin.gradle.internal.CompilerArgumentAware
,org.jetbrains.kotlin.gradle.internal.tasks.TaskWithLocalState
,org.jetbrains.kotlin.gradle.tasks.KotlinCompileTool
,org.jetbrains.kotlin.gradle.tasks.KotlinToolTask
@CacheableTask() public abstract class KotlinJsDce extends AbstractKotlinCompileTool<K2JSDceArguments> implements KotlinToolTask<KotlinJsDceCompilerToolOptions>, KotlinJsDce
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
KotlinJsDce.Companion
-
Field Summary
Fields Modifier and Type Field Description private final KotlinJsDceCompilerToolOptions
toolOptions
private Boolean
kotlinFilesOnly
private final KotlinJsDceOptions
dceOptions
private final List<String>
keep
private List<String>
jvmArgs
private final FileCollection
sources
private final ConfigurableFileCollection
libraries
private final Property<BuildMetricsReporter>
metrics
private Boolean
enabled
private final Property<Duration>
timeout
private final TaskStateInternal
state
private Boolean
impliesSubProjects
private final Boolean
hasCustomActions
private final Set<Provider<out BuildService<?>>>
requiredServices
private final DirectoryProperty
destinationDirectory
private final List<String>
serializedCompilerArguments
private final List<String>
serializedCompilerArgumentsIgnoreClasspathIssues
private final List<String>
defaultSerializedCompilerArguments
private final ConfigurableFileCollection
localStateDirectories
-
Constructor Summary
Constructors Constructor Description KotlinJsDce(ObjectFactory objectFactory)
-
Method Summary
Modifier and Type Method Description KotlinJsDceCompilerToolOptions
getToolOptions()
final Boolean
getKotlinFilesOnly()
final Unit
setKotlinFilesOnly(@Internal() Boolean kotlinFilesOnly)
KotlinJsDceOptions
getDceOptions()
List<String>
getKeep()
final List<String>
getJvmArgs()
final Unit
setJvmArgs(@Input() List<String> jvmArgs)
FileCollection
getSources()
abstract ConfigurableFileCollection
getLibraries()
K2JSDceArguments
createCompilerArgs()
Unit
setupCompilerArgs(K2JSDceArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)
Unit
keep(String fqn)
final Unit
performDce(InputChanges inputChanges)
-
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompileTool
disallowSourceChanges, exclude, exclude, exclude, exclude, getExcludes, getIncludes, getMetrics, include, include, include, include, setExcludes, setIncludes, setSource, source
-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects
-
Methods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, 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.jetbrains.kotlin.gradle.tasks.KotlinCompileTool
getDestinationDirectory
-
Methods inherited from class org.jetbrains.kotlin.gradle.internal.CompilerArgumentAware
getDefaultSerializedCompilerArguments, getSerializedCompilerArguments, getSerializedCompilerArgumentsIgnoreClasspathIssues
-
Methods inherited from class org.jetbrains.kotlin.gradle.internal.tasks.TaskWithLocalState
getLocalStateDirectories
-
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.KotlinToolTask
toolOptions, toolOptions
-
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinJsDce
dceOptions, dceOptions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getToolOptions
KotlinJsDceCompilerToolOptions getToolOptions()
-
getKotlinFilesOnly
final Boolean getKotlinFilesOnly()
-
setKotlinFilesOnly
final Unit setKotlinFilesOnly(@Internal() Boolean kotlinFilesOnly)
-
getDceOptions
@Internal() KotlinJsDceOptions getDceOptions()
-
getJvmArgs
final List<String> getJvmArgs()
-
setJvmArgs
final Unit setJvmArgs(@Input() List<String> jvmArgs)
-
getSources
@Incremental()@InputFiles()@IgnoreEmptyDirectories()@NormalizeLineEndings()@PathSensitive(value = PathSensitivity.RELATIVE) FileCollection getSources()
-
getLibraries
@Incremental()@InputFiles()@NormalizeLineEndings() abstract ConfigurableFileCollection getLibraries()
-
createCompilerArgs
K2JSDceArguments createCompilerArgs()
-
setupCompilerArgs
Unit setupCompilerArgs(K2JSDceArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)
-
performDce
final Unit performDce(InputChanges inputChanges)
-
-
-
-