api / org.gradle.api.invocation / Gradle / afterProject

afterProject

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

Adds a closure to be called immediately after a project is evaluated. The project is passed to the closure as the first parameter. The project evaluation failure, if any, is passed as the second parameter. Both parameters are optional.

Parameters

closure - The closure to execute.

abstract fun afterProject(action: Action<in Project>): Unit

Adds an action to be called immediately after a project is evaluated.

Parameters

action - The action to execute.

Since
3.4