Groovy Documentation

org.gradle.api.publish
[Java] Interface PublicationContainer

org.gradle.util.Configurable
  org.gradle.api.ExtensiblePolymorphicDomainObjectContainer
      org.gradle.api.publish.PublicationContainer
          org.gradle.api.NamedDomainObjectCollection
              java.lang.Iterable
                  org.gradle.api.DomainObjectCollection
                      org.gradle.api.PolymorphicDomainObjectContainer
                          java.util.Collection
                              org.gradle.api.NamedDomainObjectSet
                                  org.gradle.api.NamedDomainObjectContainer
All Superinterfaces:
Configurable, ExtensiblePolymorphicDomainObjectContainer, NamedDomainObjectCollection, Iterable, DomainObjectCollection, PolymorphicDomainObjectContainer, Collection, NamedDomainObjectSet, NamedDomainObjectContainer

@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


Method Summary
 
Methods inherited from interface ExtensiblePolymorphicDomainObjectContainer
registerBinding, registerFactory, registerFactory
 
Methods inherited from interface PolymorphicDomainObjectContainer
create, create
 
Methods inherited from interface NamedDomainObjectContainer
configure, create, create, create, maybeCreate
 
Methods inherited from interface NamedDomainObjectSet
findAll, matching, matching, withType
 
Methods inherited from interface NamedDomainObjectCollection
add, addAll, addRule, addRule, findByName, getAsMap, getAt, getByName, getByName, getNamer, getNames, getRules, matching, matching, withType
 
Methods inherited from interface Set
add, equals, hashCode, clear, contains, isEmpty, size, toArray, toArray, addAll, iterator, remove, containsAll, removeAll, retainAll
 

Gradle API 1.8-rc-2