api / org.gradle.api.tasks / SourceTask / setSource

setSource

open fun setSource(source: FileTree): Unit

Sets the source for this task.

Parameters

source - The source.

Since
4.0

open fun setSource(source: Any): Unit

Sets the source for this task. The given source object is evaluated as per org.gradle.api.Project#files(Object...).

Parameters

source - The source.