api / org.gradle.api.invocation / Gradle / buildFinished

buildFinished

abstract fun buildFinished(closure: Closure<Any>): Unit

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.

Parameters

closure - The closure to execute.

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

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

Parameters

action - The action to execute.

Since
3.4