Package org.gradle.api.publish
Interface PublicationContainer
- All Superinterfaces:
- Collection<Publication>,- Configurable<NamedDomainObjectContainer<Publication>>,- DomainObjectCollection<Publication>,- DomainObjectSet<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>
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.- Since:
- 1.3
- See Also:
- 
Method SummaryMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface org.gradle.api.DomainObjectCollectionaddAllLater, addLater, all, all, configureEach, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withTypeMethods inherited from interface org.gradle.api.ExtensiblePolymorphicDomainObjectContainerregisterBinding, registerFactory, registerFactoryMethods inherited from interface org.gradle.api.NamedDomainObjectCollectionadd, addAll, addRule, addRule, addRule, findByName, getAsMap, getAt, getByName, getByName, getByName, getCollectionSchema, getNamer, getNames, getRules, named, named, named, namedMethods inherited from interface org.gradle.api.NamedDomainObjectContainerconfigure, create, create, create, maybeCreate, register, registerMethods inherited from interface org.gradle.api.NamedDomainObjectSetfindAll, matching, matching, named, withTypeMethods inherited from interface org.gradle.api.PolymorphicDomainObjectContainercontainerWithType, create, create, maybeCreate, register, register