gradle
8.3

# buildFinished

abstract fun buildFinished(closure: Closure)

### Deprecated

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.

#### Deprecated

This method is not supported when configuration caching is enabled.

#### Parameters

closure

The closure to execute.

#### See also

FlowProviders

abstract fun buildFinished(action: Action<out Any>)

### Deprecated

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

#### Deprecated

This method is not supported when configuration caching is enabled.

#### Parameters

action

The action to execute.

#### See also

FlowProviders