Package: org.gradle.tooling.model.gradle

## [Java] Interface GradleBuild

- org.gradle.tooling.model.Model

- All Superinterfaces:
    Model

  Provides information about the structure of a Gradle build.

  Since:
    1.8

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `BuildIdentifier` | `getBuildIdentifier()` Returns the identifier for this Gradle build.
    `DomainObjectSet<? extends BasicGradleProject>` | `getProjects()` Returns the set of all projects for this build.
    `BasicGradleProject` | `getRootProject()` Returns the root project for this build.

- - ### Method Detail

    - #### @Incubating public BuildIdentifier getBuildIdentifier()

      Returns the identifier for this Gradle build.

      Since:
        2.13

    - #### public DomainObjectSet<? extends BasicGradleProject> getProjects()

      Returns the set of all projects for this build. Will include the root project and any ancestors.

      Returns:
        The set of all projects.

    - #### public BasicGradleProject getRootProject()

      Returns the root project for this build.

      Returns:
        The root project