gradle
8.4

# skipWhenEmpty

abstract fun skipWhenEmpty(): TaskInputFilePropertyBuilder(source)

Skip executing the task if the property contains no files. If there are multiple properties with {code skipWhenEmpty = true}, then they all need to be empty for the task to be skipped.

abstract fun skipWhenEmpty(skipWhenEmpty: Boolean): TaskInputFilePropertyBuilder(source)

Sets whether executing the task should be skipped if the property contains no files. If there are multiple properties with {code skipWhenEmpty = true}, then they all need to be empty for the task to be skipped.