# GradleProject

interface GradleProject : HierarchicalElement, BuildableElement, ProjectModel(source)

Represents a Gradle project.

#### Since

1.0

## Functions

findByPath
Link copied to clipboard
@Nullable
abstract fun findByPath(path: String): @Nullable GradleProject
Searches all descendants (children, grand-children, etc.), including self, by given path.
getBuildDirectory
Link copied to clipboard
abstract fun getBuildDirectory(): File
Returns the build directory for this project.
getBuildScript
Link copied to clipboard
abstract fun getBuildScript(): GradleScript
Returns the build script for this project.
getBuildTreePath
Link copied to clipboard
@Incubating
abstract fun getBuildTreePath(): String
Returns a path to the project for the full build tree
getChildren
Link copied to clipboard
abstract fun getChildren(): DomainObjectSet<out GradleProject>
Returns the child elements, or the empty set if there are no child elements.
getDescription
Link copied to clipboard
@Nullable
abstract fun getDescription(): @Nullable String
Returns the description of the element, or `null` if it has no description.
getName
Link copied to clipboard
abstract fun getName(): String
Returns the name of the element.
getParent
Link copied to clipboard
abstract fun getParent(): GradleProject
Returns the parent of this element, or null} if there is no parent.
getPath
Link copied to clipboard
abstract fun getPath(): String
Returns the path of this project.
getProjectDirectory
Link copied to clipboard
abstract fun getProjectDirectory(): File
Returns the project directory for this project.
getProjectIdentifier
Link copied to clipboard
abstract fun getProjectIdentifier(): ProjectIdentifier
Returns the identifier for this Gradle project.
getTasks
Link copied to clipboard
abstract fun getTasks(): DomainObjectSet<out GradleTask>
Returns the tasks of this project.