ConfigurationContainerScope

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Provides a property delegate that creates elements of the default collection type.

Link copied to clipboard
open override val delegate: ConfigurationContainer
Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open override fun add(element: Configuration): Boolean
Link copied to clipboard
open override fun addAll(elements: Collection<Configuration>): Boolean
Link copied to clipboard
open override fun addAllLater(provider: Provider<out Iterable<Configuration>>)
Link copied to clipboard
open override fun addLater(provider: Provider<out Configuration>)
Link copied to clipboard
open override fun addRule(rule: Rule): Rule
open override fun addRule(description: String, ruleAction: Closure<Any>): Rule
open override fun addRule(description: String, ruleAction: Action<String>): Rule
Link copied to clipboard
open override fun all(action: Closure<Any>)
open override fun all(action: Action<in Configuration>)
Link copied to clipboard
open override fun clear()
Link copied to clipboard
open override fun configure(configureClosure: Closure<Any>): NamedDomainObjectContainer<Configuration>
Link copied to clipboard
open override fun configureEach(action: Action<in Configuration>)
Link copied to clipboard
Link copied to clipboard

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.PolymorphicDomainObjectContainer.containerWithType.

Link copied to clipboard
open operator override fun contains(element: Configuration): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<Configuration>): Boolean
Link copied to clipboard
open override fun <U : Configuration> create(name: String, type: Class<U>): U
open override fun <U : Configuration> create(name: String, type: Class<U>, configuration: Action<in U>): U
open override fun create(name: String): Configuration
open override fun create(name: String, configureClosure: Closure<Any>): Configuration
open override fun create(name: String, configureAction: Action<in Configuration>): Configuration
Link copied to clipboard

Creates a domain object with the specified name and type, and adds it to the container.

inline fun <U : Any> PolymorphicDomainObjectContainer<in U>.create(name: String, noinline configuration: U.() -> Unit): U

Creates a domain object with the specified name and type, adds it to the container, and configures it with the specified action.

inline fun <U : T, T : Any> PolymorphicDomainObjectContainer<T>.create(name: String, type: KClass<U>): U
inline fun <U : T, T : Any> PolymorphicDomainObjectContainer<T>.create(name: String, type: KClass<U>, configuration: Action<in U>): U

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.PolymorphicDomainObjectContainer.create.

Link copied to clipboard

Provides a property delegate that creates elements of the default collection type with the given configuration.

Provides a property delegate that creates elements of the given type.

Provides a property delegate that creates elements of the given type expressed as a java.lang.Class with the given configuration.

Provides a property delegate that creates elements of the given type with the given configuration.

Link copied to clipboard
open override fun detachedConfiguration(vararg dependencies: Dependency): Configuration
Link copied to clipboard
open override fun findAll(spec: Closure<Any>): MutableSet<Configuration>
Link copied to clipboard
open override fun findByName(name: String): Configuration?
Link copied to clipboard
open fun forEach(p0: Consumer<in Configuration>)
Link copied to clipboard
operator fun <T : Any> NamedDomainObjectCollection<T>.get(name: String): T

Locates an object by name, failing if there is no such object.

Link copied to clipboard
open override fun getAsMap(): SortedMap<String, Configuration>
Link copied to clipboard
open override fun getAt(name: String): Configuration
Link copied to clipboard
open override fun getByName(name: String): Configuration
open override fun getByName(name: String, configureClosure: Closure<Any>): Configuration
open override fun getByName(name: String, configureAction: Action<in Configuration>): Configuration
Link copied to clipboard
inline fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String): T

Locates an object by name and casts it to the expected type T.

inline fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, configure: T.() -> Unit): T

Locates an object by name and casts it to the expected type T then configures it.

Locates an object by name and casts it to the expected type.

fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<T>, configure: T.() -> Unit): T

Locates an object by name and casts it to the expected type then configures it.

Link copied to clipboard
open override fun getCollectionSchema(): NamedDomainObjectCollectionSchema
Link copied to clipboard
open override fun getNamer(): Namer<Configuration>
Link copied to clipboard
open override fun getNames(): SortedSet<String>
Link copied to clipboard
open override fun getRules(): MutableList<Rule>
Link copied to clipboard

Provides a property delegate that gets elements of the given type.

Provides a property delegate that gets elements of the given type and applies the given configuration.

Link copied to clipboard

Allows the container to be configured via an augmented DSL.

Locates an object by name, without triggering its creation or configuration, failing if there is no such object.

operator fun <U : Configuration> String.invoke(type: KClass<U>, configuration: U.() -> Unit): NamedDomainObjectProvider<U>

Configures an object by name, without triggering its creation or configuration, failing if there is no such object.

Locates an object by name and type, without triggering its creation or configuration, failing if there is no such object.

Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): MutableIterator<Configuration>
Link copied to clipboard
open override fun matching(spec: Closure<Any>): NamedDomainObjectSet<Configuration>
Link copied to clipboard
open override fun <U : Configuration> maybeCreate(name: String, type: Class<U>): U
open override fun maybeCreate(name: String): Configuration
Link copied to clipboard

Creates a domain object with the specified name and type if it does not exists, and adds it to the container.

inline fun <U : T, T : Any> PolymorphicDomainObjectContainer<T>.maybeCreate(name: String, type: KClass<U>): U

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.PolymorphicDomainObjectContainer.maybeCreate.

Link copied to clipboard
open override fun named(predicate: Spec<String>): NamedDomainObjectSet<Configuration>
open override fun <S : Configuration> named(name: String, type: Class<S>): NamedDomainObjectProvider<S>
open override fun named(name: String, configurationAction: Action<in Configuration>): NamedDomainObjectProvider<Configuration>
open override fun <S : Configuration> named(name: String, type: Class<S>, configurationAction: Action<in S>): NamedDomainObjectProvider<S>
Link copied to clipboard

Locates an object by name and type, without triggering its creation or configuration, failing if there is no such object.

inline fun <S : T, T : Any> NamedDomainObjectCollection<T>.named(name: String, type: KClass<S>, configurationAction: Action<in S>): NamedDomainObjectProvider<S>

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.NamedDomainObjectCollection.named.

inline fun <T : Any> NamedDomainObjectCollection<out Any>.named(name: String, noinline configuration: T.() -> Unit): NamedDomainObjectProvider<T>
fun <T : Any> NamedDomainObjectCollection<out Any>.named(name: String, type: KClass<T>, configuration: T.() -> Unit): NamedDomainObjectProvider<T>

Configures an object by name and type, without triggering its creation or configuration, failing if there is no such object.

Link copied to clipboard
Link copied to clipboard

Allows a NamedDomainObjectCollection to be used as a property delegate.

Link copied to clipboard
open override fun <U : Configuration> register(name: String, type: Class<U>): NamedDomainObjectProvider<U>
open override fun <U : Configuration> register(name: String, type: Class<U>, configurationAction: Action<in U>): NamedDomainObjectProvider<U>
open override fun register(name: String, configurationAction: Action<in Configuration>): NamedDomainObjectProvider<Configuration>
Link copied to clipboard

Defines a new object, which will be created when it is required.

inline fun <T : Any> PolymorphicDomainObjectContainer<in T>.register(name: String, noinline configuration: T.() -> Unit): NamedDomainObjectProvider<T>

Defines and configure a new object, which will be created when it is required.

inline fun <U : T, T : Any> PolymorphicDomainObjectContainer<T>.register(name: String, type: KClass<U>, configurationAction: Action<in U>): NamedDomainObjectProvider<U>

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.PolymorphicDomainObjectContainer.register.

Link copied to clipboard
open override fun remove(element: Configuration): Boolean
Link copied to clipboard
open override fun removeAll(elements: Collection<Configuration>): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun retainAll(elements: Collection<Configuration>): Boolean
Link copied to clipboard
open override fun spliterator(): Spliterator<Configuration>
Link copied to clipboard
Link copied to clipboard
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>
Link copied to clipboard
open override fun whenObjectAdded(action: Closure<Any>)
open override fun whenObjectAdded(action: Action<in Configuration>): Action<in Configuration>
Link copied to clipboard
open override fun whenObjectRemoved(action: Closure<Any>)
open override fun whenObjectRemoved(action: Action<in Configuration>): Action<in Configuration>
Link copied to clipboard
open override fun <S : Configuration> withType(type: Class<S>): NamedDomainObjectSet<S>
open override fun <S : Configuration> withType(type: Class<S>, configureClosure: Closure<Any>): DomainObjectCollection<S>
open override fun <S : Configuration> withType(type: Class<S>, configureAction: Action<in S>): DomainObjectCollection<S>
Link copied to clipboard

Returns a collection containing the objects in this collection of the given type. The returned collection is live, so that when matching objects are later added to this collection, they are also visible in the filtered collection.

inline fun <S : Any> DomainObjectCollection<in S>.withType(noinline configuration: S.() -> Unit): DomainObjectCollection<S>

Returns a collection containing the objects in this collection of the given type. Equivalent to calling withType(type).all(configureAction).

inline fun <S : T, T : Any> DomainObjectCollection<T>.withType(type: KClass<S>, configureAction: Action<in S>): DomainObjectCollection<S>

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.DomainObjectCollection.withType.

inline fun <S : T, T : Any> DomainObjectSet<T>.withType(type: KClass<S>): DomainObjectSet<S>

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.DomainObjectSet.withType.

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.NamedDomainObjectCollection.withType.

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.NamedDomainObjectSet.withType.