jvmToolchain

abstract fun jvmToolchain(action: Action<JavaToolchainSpec>)

Configures Java toolchain both for Kotlin JVM and Java tasks in the project.

Parameters

action

abstract fun jvmToolchain(jdkVersion: Int)

Configures Java toolchain both for Kotlin JVM and Java tasks in the project.

Parameters

jdkVersion
  • JDK version as number. For example, 17 for Java 17.