api / org.gradle.api.initialization / Settings / getRootProject

getRootProject

abstract fun getRootProject(): ProjectDescriptor

Returns the root project of the build.

Return
The root project. Never returns null.