api / org.gradle.api / Project / afterEvaluate

afterEvaluate

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

Adds an action to execute immediately after this project is evaluated.

Parameters

action - the action to execute.

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

Adds a closure to be called immediately after this project has been evaluated. The project is passed to the closure as a parameter. Such a listener gets notified when the build file belonging to this project has been executed. A parent project may for example add such a listener to its child project. Such a listener can further configure those child projects based on the state of the child projects after their build files have been run.

Parameters

closure - The closure to call.