api / org.gradle.api.specs / Specs

Specs

open class Specs

Provides a number of org.gradle.api.specs.Spec implementations.

Constructors

<init>

Specs()

Provides a number of org.gradle.api.specs.Spec implementations.

Properties

SATISFIES_ALL

static val SATISFIES_ALL: Spec<Any>

SATISFIES_NONE

static val SATISFIES_NONE: Spec<Any>

Functions

convertClosureToSpec

open static fun <T : Any> convertClosureToSpec(closure: Closure<Any>): Spec<T>

intersect

open static fun <T : Any> intersect(vararg specs: Spec<in T>): Spec<T>
open static fun <T : Any> intersect(specs: MutableCollection<out Spec<in T>>): Spec<T>

Returns a spec that selects the intersection of those items selected by the given specs. Returns a spec that selects everything when no specs provided.

negate

open static fun <T : Any> negate(spec: Spec<in T>): Spec<T>

Returns a spec that selects everything that is not selected by the given spec.

satisfyAll

open static fun <T : Any> satisfyAll(): Spec<T>

satisfyNone

open static fun <T : Any> satisfyNone(): Spec<T>

union

open static fun <T : Any> union(vararg specs: Spec<in T>): Spec<T>
open static fun <T : Any> union(specs: MutableCollection<out Spec<in T>>): Spec<T>

Returns a spec that selects the union of those items selected by the provided spec. Selects everything when no specs provided.