api / org.gradle.testkit.runner / GradleRunner / withGradleInstallation

withGradleInstallation

abstract fun withGradleInstallation(installation: File): GradleRunner

Configures the runner to execute the build using the installation of Gradle specified.

The given file must be a directory containing a valid Gradle installation.

Alternatively, you may use #withGradleVersion(String) to use an automatically installed Gradle version.

Parameters

installation - a valid Gradle installation

Return
this

Since
2.9

See Also
#withGradleVersion(String)#withGradleDistribution(URI)