api / org.gradle.api.invocation / Gradle / buildStarted

buildStarted

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

Adds a closure to be called when the build is started. This Gradle instance is passed to the closure as the first parameter.

Parameters

closure - The closure to execute.

abstract fun buildStarted(action: Action<in Gradle>): Unit

Adds an action to be called when the build is started.

Parameters

action - The action to execute.

Since
3.4