api / org.gradle.tooling.model / GradleProject

GradleProject

interface GradleProject : HierarchicalElement, BuildableElement, ProjectModel

Represents a Gradle project.

Since
1.0-milestone-5

Functions

findByPath

abstract fun findByPath(path: String): GradleProject

Searches all descendants (children, grand-children, etc.), including self, by given path.

getBuildDirectory

abstract fun getBuildDirectory(): File

Returns the build directory for this project.

getBuildScript

abstract fun getBuildScript(): GradleScript

Returns the build script for this project.

getChildren

abstract fun getChildren(): DomainObjectSet<out GradleProject>

{@inheritDoc}

getParent

abstract fun getParent(): GradleProject

{@inheritDoc}

getPath

abstract fun getPath(): String

Returns the path of this project. This is a unique identifier for this project within the 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.

getTasks

abstract fun getTasks(): DomainObjectSet<out GradleTask>

{@inheritDoc}