Package 

Interface KotlinJavaToolchain.JdkSetter

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit use(File jdkHomeLocation, JavaVersion jdkVersion) Set JDK to use for Kotlin compilation.
      Unit use(String jdkHomeLocation, Object jdkVersion) Set JDK to use for Kotlin compilation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • use

         abstract Unit use(File jdkHomeLocation, JavaVersion jdkVersion)

        Set JDK to use for Kotlin compilation.

        Major JDK version is considered as compile task input.

        Parameters:
        jdkHomeLocation - path to the JDKNote: project build will fail on providing here JRE instead of JDK!
        jdkVersion - provided JDK version
      • use

         Unit use(String jdkHomeLocation, Object jdkVersion)

        Set JDK to use for Kotlin compilation.

        Parameters:
        jdkHomeLocation - path to the JDKNote: project build will fail on providing here JRE instead of JDK!
        jdkVersion - any type that is accepted by JavaVersion.toVersion