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.

PublishingExtension

The configuration of how to "publish" the different components of a project.

Since

1.3

Properties

Link copied to clipboard
val NAME: String = "publishing"
The name of this extension when installed by the org.gradle.api.publish.plugins.PublishingPlugin ({@value}).

Functions

Link copied to clipboard
The publications of the project.
Link copied to clipboard
The container of possible repositories to publish to.
Link copied to clipboard
@Inject
@NullMarked
abstract fun getSoftwareComponentFactory(): SoftwareComponentFactory
Get an instance of the SoftwareComponentFactory service.
Link copied to clipboard
abstract fun publications(configure: Action<in PublicationContainer>)
Configures the publications of this project.
Link copied to clipboard
abstract fun repositories(configure: Action<in RepositoryHandler>)
Configures the container of possible repositories to publish to.