-
- 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.internal.CompilerArgumentAware
,org.jetbrains.kotlin.gradle.internal.tasks.TaskWithLocalState
,org.jetbrains.kotlin.gradle.tasks.KotlinCompileTool
public abstract class AbstractKotlinCompileTool<T extends CommonToolArguments> extends DefaultTask implements KotlinCompileTool, CompilerArgumentAware<T>, TaskWithLocalState
-
-
Field Summary
Fields Modifier and Type Field Description private final FileCollection
sources
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 ConfigurableFileCollection
libraries
private final List<String>
serializedCompilerArguments
private final List<String>
serializedCompilerArgumentsIgnoreClasspathIssues
private final List<String>
defaultSerializedCompilerArguments
private final ConfigurableFileCollection
localStateDirectories
-
Constructor Summary
Constructors Constructor Description AbstractKotlinCompileTool(ObjectFactory objectFactory)
-
Method Summary
Modifier and Type Method Description FileCollection
getSources()
final Property<BuildMetricsReporter>
getMetrics()
Unit
source(Object sources)
Unit
setSource(Object sources)
final Unit
disallowSourceChanges()
final Set<String>
getIncludes()
final Set<String>
getExcludes()
final PatternFilterable
setIncludes(Iterable<String> includes)
final PatternFilterable
setExcludes(Iterable<String> excludes)
final PatternFilterable
include(String includes)
final PatternFilterable
include(Iterable<String> includes)
final PatternFilterable
include(Spec<FileTreeElement> includeSpec)
final PatternFilterable
include(Closure<?> includeSpec)
final PatternFilterable
exclude(String excludes)
final PatternFilterable
exclude(Iterable<String> excludes)
final PatternFilterable
exclude(Spec<FileTreeElement> excludeSpec)
final PatternFilterable
exclude(Closure<?> excludeSpec)
-
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, getLibraries
-
Methods inherited from class org.jetbrains.kotlin.gradle.internal.CompilerArgumentAware
createCompilerArgs, getDefaultSerializedCompilerArguments, getSerializedCompilerArguments, getSerializedCompilerArgumentsIgnoreClasspathIssues, setupCompilerArgs
-
Methods inherited from class org.jetbrains.kotlin.gradle.internal.tasks.TaskWithLocalState
getLocalStateDirectories
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getSources
FileCollection getSources()
-
getMetrics
@Internal() final Property<BuildMetricsReporter> getMetrics()
-
disallowSourceChanges
final Unit disallowSourceChanges()
-
getIncludes
@Internal() final Set<String> getIncludes()
-
getExcludes
@Internal() final Set<String> getExcludes()
-
setIncludes
final PatternFilterable setIncludes(Iterable<String> includes)
-
setExcludes
final PatternFilterable setExcludes(Iterable<String> excludes)
-
include
final PatternFilterable include(Spec<FileTreeElement> includeSpec)
-
include
final PatternFilterable include(Closure<?> includeSpec)
-
exclude
final PatternFilterable exclude(Spec<FileTreeElement> excludeSpec)
-
exclude
final PatternFilterable exclude(Closure<?> excludeSpec)
-
-
-
-