For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

GradlePublication

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

Since

1.12

Functions

Link copied to clipboard
abstract fun getId(): GradleModuleVersion
Returns the unique identifier of the publication.
Link copied to clipboard
Returns the identifier for the Gradle project that this publication originates from.