Package: org.gradle.tooling.model.gradle

## [Java] Interface BuildInvocations

- A model providing access to Launchable instances that can be used to initiate Gradle build.

  To launch a build, you pass one or more Launchable instances to either BuildLauncher.forTasks or BuildLauncher.forLaunchables.

  Since:
    1.12

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `ProjectIdentifier` | `getProjectIdentifier()` Returns the identifier for the Gradle project that these invocations originate from.
    `DomainObjectSet<? extends TaskSelector>` | `getTaskSelectors()` Returns tasks selectors that can be used to execute a build.
    `DomainObjectSet<? extends Task>` | `getTasks()` Returns the tasks that can be used to execute a build.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Method Detail

    - #### @Incubating public ProjectIdentifier getProjectIdentifier()

      Returns the identifier for the Gradle project that these invocations originate from.

      Since:
        2.13

    - #### public DomainObjectSet<? extends TaskSelector> getTaskSelectors()

      Returns tasks selectors that can be used to execute a build. Selector is a Launchable that requests to build all tasks with a given name in context of some project and all its subprojects.

      Returns:
        The task selectors.
      Since:
        1.12

    - #### public DomainObjectSet<? extends Task> getTasks()

      Returns the tasks that can be used to execute a build.

      Returns:
        The tasks.
      Since:
        1.12