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.

buildFinished

abstract fun buildFinished(closure: Closure)(source)

Deprecated

This method is not supported when configuration caching is enabled.

Adds a closure to be called when the build is completed. All selected tasks have been executed. A BuildResult instance is passed to the closure as a parameter.

Since

0.9

Parameters

closure

The closure to execute.

See also


abstract fun buildFinished(action: Action<in BuildResult>)(source)

Deprecated

This method is not supported when configuration caching is enabled.

Adds an action to be called when the build is completed. All selected tasks have been executed.

Since

3.4

Parameters

action

The action to execute.

See also