api / org.gradle.api / Project / getDepth

getDepth

abstract fun getDepth(): Int

Returns the nesting level of a project in a multi-project hierarchy. For single project builds this is always 0. In a multi-project hierarchy 0 is returned for the root project.