gradle
8.2

# launcherFor

abstract fun launcherFor(config: Action<out Any>): Provider<JavaLauncher>

Obtain a JavaLauncher matching the JavaToolchainSpec, as configured by the provided action.

#### Return

A `Provider<JavaLauncher>`

#### Parameters

config

The configuration of the `JavaToolchainSpec`

abstract fun launcherFor(spec: JavaToolchainSpec): Provider<JavaLauncher>

Obtain a JavaLauncher matching the JavaToolchainSpec.

#### Return

A `Provider<JavaLauncher>`

#### Parameters

spec

The `JavaToolchainSpec`