api / org.gradle.tooling.model.gradle / BasicGradleProject

BasicGradleProject

interface BasicGradleProject : Model, ProjectModel

Provides some basic details about a Gradle project.

Since
1.8

Functions

getChildren

abstract fun getChildren(): DomainObjectSet<out BasicGradleProject>

Returns the child projects of this project, or the empty set if there are no child projects.

getName

abstract fun getName(): String

Returns the name of this project. Note that the name is not a unique identifier for the project.

getParent

abstract fun getParent(): BasicGradleProject

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

getPath

abstract fun getPath(): String

Returns the path of this project. The path can be used as a unique identifier for the project within a given build.

getProjectDirectory

abstract fun getProjectDirectory(): File

Returns the project directory for this project.

getProjectIdentifier

abstract fun getProjectIdentifier(): ProjectIdentifier

Returns the identifier for this Gradle project.