api / org.gradle.api.initialization / ProjectDescriptor / getParent

getParent

abstract fun getParent(): ProjectDescriptor

Returns the parent of this project, if any. Returns null if this project is the root project.

Return
The parent, or null if this is the root project.