api / org.gradle.tooling.model.gradle / GradlePublication

GradlePublication

interface GradlePublication : ProjectModel

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

Since
1.12

Functions

getId

abstract fun getId(): GradleModuleVersion

Returns the unique identifier of the publication.

getProjectIdentifier

abstract fun getProjectIdentifier(): ProjectIdentifier

Returns the identifier for the Gradle project that this publication originates from.