-
- 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 classKotlinJsDce.Companion
-
Field Summary
Fields Modifier and Type Field Description private final KotlinJsDceCompilerToolOptionstoolOptionsprivate BooleankotlinFilesOnlyprivate final KotlinJsDceOptionsdceOptionsprivate final List<String>keepprivate List<String>jvmArgsprivate final FileCollectionsourcesprivate final ConfigurableFileCollectionlibrariesprivate final Property<BuildMetricsReporter>metricsprivate Booleanenabledprivate final Property<Duration>timeoutprivate final TaskStateInternalstateprivate BooleanimpliesSubProjectsprivate final BooleanhasCustomActionsprivate final Set<Provider<out BuildService<?>>>requiredServicesprivate final DirectoryPropertydestinationDirectoryprivate final List<String>serializedCompilerArgumentsprivate final List<String>serializedCompilerArgumentsIgnoreClasspathIssuesprivate final List<String>defaultSerializedCompilerArgumentsprivate final ConfigurableFileCollectionlocalStateDirectories
-
Constructor Summary
Constructors Constructor Description KotlinJsDce(ObjectFactory objectFactory)
-
Method Summary
Modifier and Type Method Description KotlinJsDceCompilerToolOptionsgetToolOptions()final BooleangetKotlinFilesOnly()final UnitsetKotlinFilesOnly(@Internal() Boolean kotlinFilesOnly)KotlinJsDceOptionsgetDceOptions()List<String>getKeep()final List<String>getJvmArgs()final UnitsetJvmArgs(@Input() List<String> jvmArgs)FileCollectiongetSources()abstract ConfigurableFileCollectiongetLibraries()K2JSDceArgumentscreateCompilerArgs()UnitsetupCompilerArgs(K2JSDceArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)Unitkeep(String fqn)final UnitperformDce(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, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, 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)
-
-
-
-