api / org.gradle.api.invocation / Gradle / getRootProject

getRootProject

abstract fun getRootProject(): Project

Returns the root project of this build.

Exceptions

IllegalStateException - When called before the root project is available.

Return
The root project. Never returns null.