api / org.gradle.api.tasks / TaskOutputs / getHasOutput

getHasOutput

abstract fun getHasOutput(): Boolean

Returns true if this task has declared any outputs. Note that a task may be able to produce output files and still have an empty set of output files.

Return
true if this task has declared any outputs, otherwise false.