For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

depthCompare

abstract fun depthCompare(otherProject: Project): Int(source)

Compares the nesting level of this project with another project of the multi-project hierarchy.

Return

a negative integer, zero, or a positive integer as this project has a nesting level less than, equal to, or greater than the specified object.

Since

0.7

Parameters

otherProject

The project to compare the nesting level with.

See also