Collection<Publication>
, org.gradle.util.Configurable<NamedDomainObjectContainer<Publication>>
, DomainObjectCollection<Publication>
, ExtensiblePolymorphicDomainObjectContainer<Publication>
, Iterable<Publication>
, NamedDomainObjectCollection<Publication>
, NamedDomainObjectContainer<Publication>
, org.gradle.api.internal.rules.NamedDomainObjectFactoryRegistry<Publication>
, NamedDomainObjectSet<Publication>
, PolymorphicDomainObjectContainer<Publication>
, Set<Publication>
public interface PublicationContainer extends ExtensiblePolymorphicDomainObjectContainer<Publication>
PublicationContainer
is responsible for creating and managing Publication
instances.
The set of available publication types is dependent on the application of particular plugins:
MavenPublishPlugin
makes it possible to create MavenPublication
instances.IvyPublishPlugin
makes it possible to create IvyPublication
instances.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(org.gradle.api.Action)
for examples of how to create and configure publications.Publication
,
PublishingExtension
parallelStream, removeIf, stream, toArray
addAllLater, addLater, all, all, configureEach, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withType
registerBinding, registerFactory, registerFactory
add, addAll, addRule, addRule, addRule, findByName, getAsMap, getAt, getByName, getByName, getByName, getCollectionSchema, getNamer, getNames, getRules, named, named, named, named
configure, create, create, create, maybeCreate, register, register
findAll, matching, matching, withType
containerWithType, create, create, maybeCreate, register, register