Tasks Collection
Provides access to key tasks used for building the binary.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Executes the given closure against all objects in this collection, and any objects subsequently added to this collection.
Executes the given action against all objects in this collection, and any objects subsequently added to this collection.
Link copied to clipboard
Configures each element in this collection using the given action, as each element is required.
Link copied to clipboard
Link copied to clipboard
inline fun <T : Task> BinaryTasksCollection.create(name: String, type: KClass<T>, config: Action<in T>)
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.platform.base.BinaryTasksCollection.create.
Link copied to clipboard
Disallows further structural modifications to this collection.
Link copied to clipboard
Returns a collection which contains the objects in this collection which meet the given closure specification.
Returns a collection which contains the objects in this collection which meet the given specification.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Adds a closure to be called when an object is added to this collection.
Adds an
Action to be executed when an object is added to this collection.Link copied to clipboard
Adds a closure to be called when an object is removed from this collection.
Adds an
Action to be executed when an object is removed from this collection.Link copied to clipboard
abstract fun <S : T?> withType(type: Class<S>, @DelegatesTo(genericTypeIndex = 0 ) configureClosure: Closure): DomainObjectCollection<S>
abstract fun <S : T?> withType(type: Class<S>, configureAction: Action<in S>): DomainObjectCollection<S>
Returns a collection containing the objects in this collection of the given type.
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>): DomainObjectCollection<S>
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.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.DomainObjectSet.withType.