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.

useSpock

abstract fun useSpock()(source)

Use the Spock Framework testing framework.

Gradle will provide the version of Spock to use. Defaults to version 2.3-groovy-4.0

Since

7.3


abstract fun useSpock(version: String)(source)

Use the Spock Framework testing framework with a specific version.

Since

7.3

Parameters

version

the version of Spock to use


abstract fun useSpock(version: Provider<String>)(source)

Use the Spock Framework testing framework with a specific version.

Since

7.6

Parameters

version

provider supplying the version of Spock to use