JdkSetter

interface JdkSetter

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

Functions

Link copied to clipboard
abstract fun use(jdkHomeLocation: File, jdkVersion: JavaVersion)
open fun use(jdkHomeLocation: String, jdkVersion: Any)

Configures the JVM toolchain to use the JDK located under the jdkHomeLocation absolute path. The major JDK version from javaVersion is used as a task input so that Gradle avoids using task outputs in the build cache that use different JDK versions.