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.

getHasOutput

abstract fun getHasOutput(): Boolean(source)

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.

Since

0.9