-
- 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.CompilerArgumentAwareWithInput,org.jetbrains.kotlin.gradle.internal.tasks.TaskWithLocalState
public abstract class AbstractKotlinCompileTool<T extends CommonToolArguments> extends DefaultTask implements PatternFilterable, CompilerArgumentAwareWithInput<T>, TaskWithLocalState
-
-
Field Summary
Fields Modifier and Type Field Description private final FileCollectionsourcesprivate final ConfigurableFileCollectionlibrariesprivate final DirectoryPropertydestinationDirectoryprivate final Property<BuildMetricsReporter>metricsprivate final List<String>serializedCompilerArgumentsprivate final List<String>defaultSerializedCompilerArgumentsprivate final List<String>serializedCompilerArgumentsIgnoreClasspathIssuesprivate final Map<String, String>filteredArgumentsMapprivate final ConfigurableFileCollectionlocalStateDirectories
-
Constructor Summary
Constructors Constructor Description AbstractKotlinCompileTool(ObjectFactory objectFactory)
-
Method Summary
Modifier and Type Method Description FileCollectiongetSources()abstract ConfigurableFileCollectiongetLibraries()abstract DirectoryPropertygetDestinationDirectory()Property<BuildMetricsReporter>getMetrics()List<String>getSerializedCompilerArguments()List<String>getDefaultSerializedCompilerArguments()List<String>getSerializedCompilerArgumentsIgnoreClasspathIssues()Map<String, String>getFilteredArgumentsMap()abstract ConfigurableFileCollectiongetLocalStateDirectories()UnitsetSource(Object source)Sets the source for this task. UnitsetSource(Object source)Sets the source for this task. final UnitdisallowSourceChanges()final Set<String>getIncludes()final Set<String>getExcludes()final PatternFilterablesetIncludes(Iterable<String> includes)final PatternFilterablesetExcludes(Iterable<String> excludes)final PatternFilterableinclude(String includes)final PatternFilterableinclude(Iterable<String> includes)final PatternFilterableinclude(Spec<FileTreeElement> includeSpec)final PatternFilterableinclude(Closure<?> includeSpec)final PatternFilterableexclude(String excludes)final PatternFilterableexclude(Iterable<String> excludes)final PatternFilterableexclude(Spec<FileTreeElement> excludeSpec)final PatternFilterableexclude(Closure<?> excludeSpec)-
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 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.internal.CompilerArgumentAwareWithInput
createCompilerArgs, setupCompilerArgs -
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()
-
getLibraries
@Classpath()@Incremental() abstract ConfigurableFileCollection getLibraries()
-
getDestinationDirectory
@OutputDirectory() abstract DirectoryProperty getDestinationDirectory()
-
getMetrics
@Internal() Property<BuildMetricsReporter> getMetrics()
-
getSerializedCompilerArguments
@Internal() List<String> getSerializedCompilerArguments()
-
getDefaultSerializedCompilerArguments
@Internal() List<String> getDefaultSerializedCompilerArguments()
-
getSerializedCompilerArgumentsIgnoreClasspathIssues
@Internal() List<String> getSerializedCompilerArgumentsIgnoreClasspathIssues()
-
getFilteredArgumentsMap
@Input() Map<String, String> getFilteredArgumentsMap()
-
getLocalStateDirectories
@Internal() abstract ConfigurableFileCollection getLocalStateDirectories()
-
setSource
Unit setSource(Object source)
Sets the source for this task. The given source object is evaluated as per org.gradle.api.Project.files.
-
setSource
Unit setSource(Object source)
Sets the source for this task. The given source object is evaluated as per org.gradle.api.Project.files.
-
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)
-
-
-
-