gradle
8.5

# launcherFor

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

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>(source)

Obtain a JavaLauncher matching the JavaToolchainSpec.

#### Return

A `Provider<JavaLauncher>`

#### Parameters

spec

The `JavaToolchainSpec`