-
- All Implemented Interfaces:
-
org.jetbrains.kotlin.gradle.dsl.KotlinCommonToolOptions
public interface KotlinCommonOptions implements KotlinCommonToolOptions
-
-
Method Summary
Modifier and Type Method Description 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", "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", "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", "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", "1. abstract BooleangetUseK2()Compile using experimental K2. abstract UnitsetUseK2(Boolean useK2)Compile using experimental K2. -
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinCommonToolOptions
getAllWarningsAsErrors, getFreeCompilerArgs, getSuppressWarnings, getVerbose, setAllWarningsAsErrors, setFreeCompilerArgs, setSuppressWarnings, setVerbose -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
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", "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", "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", "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", "1.9 (experimental)" Default value: null
-
getUseK2
abstract Boolean getUseK2()
Compile using experimental K2. K2 is a new compiler pipeline, no compatibility guarantees are yet provided Default value: false
-
-
-
-