For AI agents: the documentation index is at
https://docs.gradle.org/llms.txt
. Request any page with the header
Accept: text/markdown
to get Markdown. User manual pages are also available as Markdown by replacing
.html
with
.md
in the URL.
gradle
Toggle table of contents
9.9.1
API
Target filter
API
Switch theme
Search in API
Skip to content
gradle
gradle
/
org.gradle.api.specs
/
Specs
Specs
API
open
class
Specs
(
source
)
Provides a number of
org.gradle.api.specs.Spec
implementations.
Since
0.7
Members
Constructors
Specs
Link copied to clipboard
API
constructor
(
)
Properties
SATISFIES_
ALL
Link copied to clipboard
API
val
SATISFIES_ALL
:
Spec
<
Any
>
The shared spec that is satisfied by every object.
SATISFIES_
NONE
Link copied to clipboard
API
val
SATISFIES_NONE
:
Spec
<
Any
>
The shared spec that is satisfied by no object.
Functions
convert
Closure
To
Spec
Link copied to clipboard
API
open
fun
<
T
>
convertClosureToSpec
(
closure
:
Closure
<
out
Any
>
)
:
Spec
<
T
>
Returns a spec satisfied by objects for which the closure returns a Groovy-true value.
intersect
Link copied to clipboard
API
open
fun
<
T
>
intersect
(
specs
:
Collection
<
out
Spec
<
in
T
>
>
)
:
Spec
<
T
>
@
SafeVarargs
open
fun
<
T
>
intersect
(
specs
:
Array
<
Spec
<
in
T
>
>
)
:
Spec
<
T
>
Returns a spec that selects the intersection of those items selected by the given specs.
negate
Link copied to clipboard
API
open
fun
<
T
>
negate
(
spec
:
Spec
<
in
T
>
)
:
Spec
<
T
>
Returns a spec that selects everything that is not selected by the given spec.
satisfy
All
Link copied to clipboard
API
open
fun
<
T
>
satisfyAll
(
)
:
Spec
<
T
>
Returns the shared spec that is satisfied by every object.
satisfy
None
Link copied to clipboard
API
open
fun
<
T
>
satisfyNone
(
)
:
Spec
<
T
>
Returns the shared spec that is satisfied by no object.
union
Link copied to clipboard
API
open
fun
<
T
>
union
(
specs
:
Collection
<
out
Spec
<
in
T
>
>
)
:
Spec
<
T
>
@
SafeVarargs
open
fun
<
T
>
union
(
specs
:
Array
<
Spec
<
in
T
>
>
)
:
Spec
<
T
>
Returns a spec that selects the union of those items selected by the given specs.