api / org.gradle.tooling.model.gradle / BuildInvocations

BuildInvocations

interface BuildInvocations : Model, ProjectModel

A model providing access to org.gradle.tooling.model.Launchable instances that can be used to initiate Gradle build.

To launch a build, you pass one or more org.gradle.tooling.model.Launchable instances to either org.gradle.tooling.BuildLauncher#forTasks(Iterable) or org.gradle.tooling.BuildLauncher#forLaunchables(Iterable).

Since
1.12

Functions

getProjectIdentifier

abstract fun getProjectIdentifier(): ProjectIdentifier

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

getTaskSelectors

abstract fun getTaskSelectors(): DomainObjectSet<out TaskSelector>

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

getTasks

abstract fun getTasks(): DomainObjectSet<out Task>

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