interface PublishingExtension
The configuration of how to “publish” the different components of a project.
Since
1.3
static val NAME: String
The name of this extension when installed by the org.gradle.api.publish.plugins.PublishingPlugin ({@value}). |
abstract fun getPublications(): PublicationContainer
The publications of the project. See |
|
abstract fun getRepositories(): RepositoryHandler
The container of possible repositories to publish to. See |
|
abstract fun publications(configure: Action<in PublicationContainer>): Unit
Configures the publications of this project. The publications container defines the outgoing publications of the project. That is, the consumable representations of things produced by building the project. An example of a publication would be an Ivy Module (i.e. Actual publication implementations and the ability to create them are provided by different plugins. The “publishing” plugin itself does not provide any publication types. For example, given that the 'maven-publish' plugin provides a org.gradle.api.publish.maven.MavenPublication type, you can create a publication like:
Please see org.gradle.api.publish.ivy.IvyPublication and org.gradle.api.publish.maven.MavenPublication for more information on publishing in these specific formats. |
|
abstract fun repositories(configure: Action<in RepositoryHandler>): Unit
Configures the container of possible repositories to publish to. The repositories block is backed by a RepositoryHandler, which is the same DSL as that that is used for declaring repositories to consume dependencies from. However, certain types of repositories that can be created by the repository handler are not valid for publishing, such as org.gradle.api.artifacts.dsl.RepositoryHandler#mavenCentral() .
At this time, only repositories created by the |