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.

rethrowFailure

abstract fun rethrowFailure()(source)

Throws the task failure, if any. Does nothing if the task did not fail.

Calling this method is meaningful only after the task has been executed.

Since

0.9

See also