-
- All Implemented Interfaces:
-
org.jetbrains.kotlin.gradle.dsl.KotlinCommonOptions,org.jetbrains.kotlin.gradle.dsl.KotlinCommonToolOptions
public interface KotlinJvmOptions implements KotlinCommonOptions
-
-
Method Summary
Modifier and Type Method Description abstract BooleangetJavaParameters()Generate metadata for Java 1. abstract UnitsetJavaParameters(Boolean javaParameters)Generate metadata for Java 1. abstract StringgetJdkHome()Include a custom JDK from the specified location into the classpath instead of the default JAVA_HOME Default value: null abstract UnitsetJdkHome(@Deprecated(message = "This option is not working well with Gradle caching and will be removed in the future.", level = DeprecationLevel.WARNING) String jdkHome)Include a custom JDK from the specified location into the classpath instead of the default JAVA_HOME Default value: null abstract StringgetJvmTarget()Target version of the generated JVM bytecode (1.6 (DEPRECATED), 1.8, 9, 10, ..., 18), default is 1.8 Possible values: "1.6", "1. abstract UnitsetJvmTarget(String jvmTarget)Target version of the generated JVM bytecode (1.6 (DEPRECATED), 1.8, 9, 10, ..., 18), default is 1.8 Possible values: "1.6", "1. abstract StringgetModuleName()Name of the generated . abstract UnitsetModuleName(String moduleName)Name of the generated . abstract BooleangetNoJdk()Don't automatically include the Java runtime into the classpath Default value: false abstract UnitsetNoJdk(Boolean noJdk)Don't automatically include the Java runtime into the classpath Default value: false abstract BooleangetUseOldBackend()Use the old JVM backend Default value: false abstract UnitsetUseOldBackend(Boolean useOldBackend)Use the old JVM backend Default value: false abstract StringgetApiVersion()Allow using declarations only from the specified version of bundled libraries Possible values: "1.3 (DEPRECATED)", "1.4 (DEPRECATED)", "1.5", "1.6", "1.7", "1.8 (EXPERIMENTAL)", "1. abstract UnitsetApiVersion(String apiVersion)Allow using declarations only from the specified version of bundled libraries Possible values: "1.3 (DEPRECATED)", "1.4 (DEPRECATED)", "1.5", "1.6", "1.7", "1.8 (EXPERIMENTAL)", "1. abstract StringgetLanguageVersion()Provide source compatibility with the specified version of Kotlin Possible values: "1.3 (DEPRECATED)", "1.4 (DEPRECATED)", "1.5", "1.6", "1.7", "1.8 (EXPERIMENTAL)", "1. abstract UnitsetLanguageVersion(String languageVersion)Provide source compatibility with the specified version of Kotlin Possible values: "1.3 (DEPRECATED)", "1.4 (DEPRECATED)", "1.5", "1.6", "1.7", "1.8 (EXPERIMENTAL)", "1. abstract BooleangetUseFir()Compile using Front-end IR. abstract UnitsetUseFir(Boolean useFir)Compile using Front-end IR. abstract BooleangetAllWarningsAsErrors()Report an error if there are any warnings Default value: false abstract UnitsetAllWarningsAsErrors(Boolean allWarningsAsErrors)Report an error if there are any warnings Default value: false abstract BooleangetSuppressWarnings()Generate no warnings Default value: false abstract UnitsetSuppressWarnings(Boolean suppressWarnings)Generate no warnings Default value: false abstract BooleangetVerbose()Enable verbose logging output Default value: false abstract UnitsetVerbose(Boolean verbose)Enable verbose logging output Default value: false abstract List<String>getFreeCompilerArgs()A list of additional compiler arguments Default value: emptyList() abstract UnitsetFreeCompilerArgs(List<String> freeCompilerArgs)A list of additional compiler arguments Default value: emptyList() -
-
Method Detail
-
getJavaParameters
abstract Boolean getJavaParameters()
Generate metadata for Java 1.8 reflection on method parameters Default value: false
-
setJavaParameters
abstract Unit setJavaParameters(Boolean javaParameters)
Generate metadata for Java 1.8 reflection on method parameters Default value: false
-
getJdkHome
abstract String getJdkHome()
Include a custom JDK from the specified location into the classpath instead of the default JAVA_HOME Default value: null
-
setJdkHome
abstract Unit setJdkHome(@Deprecated(message = "This option is not working well with Gradle caching and will be removed in the future.", level = DeprecationLevel.WARNING) String jdkHome)
Include a custom JDK from the specified location into the classpath instead of the default JAVA_HOME Default value: null
-
getJvmTarget
abstract String getJvmTarget()
Target version of the generated JVM bytecode (1.6 (DEPRECATED), 1.8, 9, 10, ..., 18), default is 1.8 Possible values: "1.6", "1.8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18" Default value: null
-
setJvmTarget
abstract Unit setJvmTarget(String jvmTarget)
Target version of the generated JVM bytecode (1.6 (DEPRECATED), 1.8, 9, 10, ..., 18), default is 1.8 Possible values: "1.6", "1.8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18" Default value: null
-
getModuleName
abstract String getModuleName()
Name of the generated .kotlin_module file Default value: null
-
setModuleName
abstract Unit setModuleName(String moduleName)
Name of the generated .kotlin_module file Default value: null
-
getNoJdk
abstract Boolean getNoJdk()
Don't automatically include the Java runtime into the classpath Default value: false
-
setNoJdk
abstract Unit setNoJdk(Boolean noJdk)
Don't automatically include the Java runtime into the classpath Default value: false
-
getUseOldBackend
abstract Boolean getUseOldBackend()
Use the old JVM backend Default value: false
-
setUseOldBackend
abstract Unit setUseOldBackend(Boolean useOldBackend)
Use the old JVM backend Default value: false
-
getApiVersion
abstract String getApiVersion()
Allow using declarations only from the specified version of bundled libraries Possible values: "1.3 (DEPRECATED)", "1.4 (DEPRECATED)", "1.5", "1.6", "1.7", "1.8 (EXPERIMENTAL)", "1.9 (EXPERIMENTAL)" Default value: null
-
setApiVersion
abstract Unit setApiVersion(String apiVersion)
Allow using declarations only from the specified version of bundled libraries Possible values: "1.3 (DEPRECATED)", "1.4 (DEPRECATED)", "1.5", "1.6", "1.7", "1.8 (EXPERIMENTAL)", "1.9 (EXPERIMENTAL)" Default value: null
-
getLanguageVersion
abstract String getLanguageVersion()
Provide source compatibility with the specified version of Kotlin Possible values: "1.3 (DEPRECATED)", "1.4 (DEPRECATED)", "1.5", "1.6", "1.7", "1.8 (EXPERIMENTAL)", "1.9 (EXPERIMENTAL)" Default value: null
-
setLanguageVersion
abstract Unit setLanguageVersion(String languageVersion)
Provide source compatibility with the specified version of Kotlin Possible values: "1.3 (DEPRECATED)", "1.4 (DEPRECATED)", "1.5", "1.6", "1.7", "1.8 (EXPERIMENTAL)", "1.9 (EXPERIMENTAL)" Default value: null
-
getUseFir
abstract Boolean getUseFir()
Compile using Front-end IR. Warning: this feature is far from being production-ready Default value: false
-
setUseFir
abstract Unit setUseFir(Boolean useFir)
Compile using Front-end IR. Warning: this feature is far from being production-ready Default value: false
-
getAllWarningsAsErrors
abstract Boolean getAllWarningsAsErrors()
Report an error if there are any warnings Default value: false
-
setAllWarningsAsErrors
abstract Unit setAllWarningsAsErrors(Boolean allWarningsAsErrors)
Report an error if there are any warnings Default value: false
-
getSuppressWarnings
abstract Boolean getSuppressWarnings()
Generate no warnings Default value: false
-
setSuppressWarnings
abstract Unit setSuppressWarnings(Boolean suppressWarnings)
Generate no warnings Default value: false
-
getVerbose
abstract Boolean getVerbose()
Enable verbose logging output Default value: false
-
setVerbose
abstract Unit setVerbose(Boolean verbose)
Enable verbose logging output Default value: false
-
getFreeCompilerArgs
abstract List<String> getFreeCompilerArgs()
A list of additional compiler arguments Default value: emptyList()
-
setFreeCompilerArgs
abstract Unit setFreeCompilerArgs(List<String> freeCompilerArgs)
A list of additional compiler arguments Default value: emptyList()
-
-
-
-