api / org.gradle.api.tasks / TaskState / getDidWork

getDidWork

abstract fun getDidWork(): Boolean

Checks if the task actually did any work. Even if a task executes, it may determine that it has nothing to do. For example, a compilation task may determine that source files have not changed since the last time a the task was run.

Return
true if this task has been executed and did any work.