api / org.gradle.api.tasks / TaskInputs / getSourceFiles

getSourceFiles

abstract fun getSourceFiles(): FileCollection

Returns the set of source files for this task. These are the subset of input files which the task actually does work on. A task is skipped if it has declared it accepts source files, and this collection is empty.

Return
The set of source files for this task.