api / org.gradle.api / Task / getDidWork

getDidWork

@Internal 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 did any work