api / org.gradle.api.invocation / Gradle / rootProject

rootProject

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

Adds an action to execute against the root project of this build. If the root project is already available, the action is executed immediately. Otherwise, the action is executed when the root project becomes available.

Parameters

action - The action to execute.