org.gradle.api.publish
[Java] Interface PublicationContainer
org.gradle.api.NamedDomainObjectSet
org.gradle.api.PolymorphicDomainObjectContainer
org.gradle.api.NamedDomainObjectContainer
org.gradle.api.ExtensiblePolymorphicDomainObjectContainer
org.gradle.api.NamedDomainObjectCollection
java.lang.Iterable
org.gradle.api.publish.PublicationContainer
org.gradle.api.DomainObjectCollection
org.gradle.util.Configurable
java.util.Collection
- All Superinterfaces:
- NamedDomainObjectSet, PolymorphicDomainObjectContainer, NamedDomainObjectContainer, ExtensiblePolymorphicDomainObjectContainer, NamedDomainObjectCollection, Iterable, DomainObjectCollection, Configurable, Collection
@Incubating
public interface PublicationContainer
extends ExtensiblePolymorphicDomainObjectContainer
A PublicationContainer is responsible for creating and managing Publication instances.
The set of available publication types is dependent on the application of particular plugins:
apply plugin: '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 for examples of how to create and configure publications.
- See Also:
- Publication
- PublishingExtension
- Since:
- 1.3
Gradle API 1.12