interface IvyConfigurationContainer : NamedDomainObjectContainer<IvyConfiguration>
The set of IvyConfigurations that will be included in the IvyPublication. Being a org.gradle.api.NamedDomainObjectContainer, a IvyConfigurationContainer
provides convenient methods for adding, querying, filtering, and applying actions to the set of IvyConfigurations.
apply plugin: 'ivy-publish' def publication = publishing.publications.create("my-pub", IvyPublication) def configurations = publication.configurations configurations.create("extended", { extend "default"}) configurations.all { extend "base" }
abstract fun configure(configureClosure: Closure<Any>): NamedDomainObjectContainer<T>
Allows the container to be configured, creating missing objects as they are referenced. TODO: example usage |
|
abstract fun create(name: String): T
Creates a new item with the given name, adding it to this container. abstract fun create(name: String, configureClosure: Closure<Any>): T
Creates a new item with the given name, adding it to this container, then configuring it with the given closure. abstract fun create(name: String, configureAction: Action<in T>): T
Creates a new item with the given name, adding it to this container, then configuring it with the given action. |
|
abstract fun maybeCreate(name: String): T
Looks for an item with the given name, creating and adding it to this container if it does not exist. |