Configuring tasks

JVM runner tasks such as Test and JavaExec that might need access to cached binaries, can be configured from the extension.

As from 4.0, Test tasks are no longer configured automatically and it is up to the build script author to explicitly make a connection.
Table 1. Methods
Method Purpose

configureTestTask

Configures a single Test task

configureTestTasks

Configures a collection of Test tasks.

configureExecTask

Configures a single JavaExec task.

configureExecSpec

Configures something that implements JavaExecSpec or ForkedJvmExecutable.

configureForkOptions

Configures something that implements JavaForkOptions

task exec(type: JavaExec) {
   // ...
}

webdriverBinaries {
    configureExecTask(exec)
}