Table of Contents
| API Documentation: | PublicationContainer |
|---|
A PublicationContainer is responsible for creating and managing Publication instances.
The set of available publication types is dependent on the application of particular plugins:
- The
MavenPublishPluginmakes it possible to createMavenPublicationinstances. - The
IvyPublishPluginmakes it possible to createIvyPublicationinstances.
plugins {
id 'ivy-publish'
}
publishing.publications.create('publication-name', IvyPublication) {
// Configure the ivy publication here
}
The usual way to add publications is via a configuration block.
See the documentation for PublishingExtension.publications(org.gradle.api.Action) for examples of how to create and configure publications.