For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

getUpToDate

abstract fun getUpToDate(): Boolean(source)

Returns true if the execution of this task was skipped because the task was up-to-date.

Checking this value is meaningful only after the task has been executed.

Return

true if this task has been considered up-to-date

Since

2.5