Interface KotlinJavaToolchain.JdkSetter
-
- All Implemented Interfaces:
public interface KotlinJavaToolchain.JdkSetterProvides methods to configure the task using an explicit JDK location.
-
-
Method Summary
Modifier and Type Method Description abstract Unituse(File jdkHomeLocation, JavaVersion jdkVersion)Configures the JVM toolchain to use the JDK located under the jdkHomeLocation absolute path. Unituse(String jdkHomeLocation, Object jdkVersion)Configures the JVM toolchain to use the JDK located under the jdkHomeLocation absolute path. -
-
Method Detail
-
use
abstract Unit use(File jdkHomeLocation, JavaVersion jdkVersion)
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.
Note: The project build fails if the JRE version instead of the JDK version is provided.
- Parameters:
jdkHomeLocation- The path to the JDK location on the machinejdkVersion- The JDK version located in the configured jdkHomeLocation path
-
use
Unit use(String jdkHomeLocation, Object jdkVersion)
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.
Note: The project build fails if the JRE version instead of the JDK version is provided.
- Parameters:
jdkHomeLocation- The path to the JDK location on the machinejdkVersion- JDK version located in the configured jdkHomeLocation path.
-
-
-
-