KotlinJavaToolchain

The Kotlin JVM toolchain.

This interface provides ways to configure the JDK either via JdkSetter by providing a path to JDK directly, or via JavaToolchainSetter using the configured JavaLauncher.

The configured JDK Java version is exposed as a task input so that Gradle only reuses the task outputs stored in the build cache with the same JDK version.

Types

Link copied to clipboard

Provides methods to configure the task using the Gradle JVM toolchain.

Link copied to clipboard
interface JdkSetter

Provides methods to configure the task using an explicit JDK location.

Properties

Link copied to clipboard

The configured JVM toolchain JavaVersion.

Link copied to clipboard

Provides access to the JdkSetter to configure the JVM toolchain for the task using an explicit JDK location.

Link copied to clipboard

Provides access to the JavaToolchainSetter to configure JVM toolchain for the task using the Gradle JVM toolchain.