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.

and

fun and(specs: Array<Spec<in T>>): AndSpec<T>(source)

Returns an AndSpec whose member specs are this spec's, followed by the given ones.

Since

0.9


open fun and(spec: Spec<in T>): AndSpec<T>(source)

Returns an AndSpec whose member specs are this spec's, followed by the given one.

Since

4.3


open fun and(spec: Closure): AndSpec<T>(source)

Returns an AndSpec whose member specs are this spec's, followed by the closure as a spec.

Since

0.9

See also