org.gradle.api.publish
[Java] Interface PublicationContainer
org.gradle.api.DomainObjectCollection
org.gradle.api.NamedDomainObjectCollection
org.gradle.api.ExtensiblePolymorphicDomainObjectContainer
java.lang.Iterable
org.gradle.api.PolymorphicDomainObjectContainer
org.gradle.util.Configurable
org.gradle.api.NamedDomainObjectSet
org.gradle.api.NamedDomainObjectContainer
java.util.Collection
org.gradle.api.publish.PublicationContainer
- All Superinterfaces:
- DomainObjectCollection, NamedDomainObjectCollection, ExtensiblePolymorphicDomainObjectContainer, Iterable, PolymorphicDomainObjectContainer, Configurable, NamedDomainObjectSet, NamedDomainObjectContainer, 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
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.11