api / org.gradle.tooling.model / ProjectModel

ProjectModel

interface ProjectModel

Represents a model that is associated with some Gradle project.

Since
3.0

Functions

getProjectIdentifier

abstract fun getProjectIdentifier(): ProjectIdentifier

Returns the identifier for the project that this model is associated with.

Inheritors

BasicGradleProject

interface BasicGradleProject : Model, ProjectModel

Provides some basic details about a Gradle project.

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).

GradleProject

interface GradleProject : HierarchicalElement, BuildableElement, ProjectModel

Represents a Gradle project.

GradlePublication

interface GradlePublication : ProjectModel

Represents some publication produced by a Gradle project, typically to a Maven or Ivy repository.

HasGradleProject

interface HasGradleProject : ProjectModel

An element that is associated with a Gradle project. Via the Gradle project you can access (list, run, etc.) Gradle tasks.

Launchable

interface Launchable : ProjectModel

Represents an object that can be used to launch a Gradle build, such as a task.

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).

ProjectPublications

interface ProjectPublications : Model, ProjectModel

A model providing information about the publications of a Gradle project.