-
- All Implemented Interfaces:
-
org.jetbrains.kotlin.gradle.dsl.KotlinCommonToolOptions
public interface KotlinCommonOptions implements KotlinCommonToolOptions
-
-
Method Summary
Modifier and Type Method Description 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. 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. 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. 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. abstract Boolean
getUseFir()
Compile using Front-end IR. abstract Unit
setUseFir(Boolean useFir)
Compile using Front-end IR. abstract Boolean
getAllWarningsAsErrors()
Report an error if there are any warnings Default value: false abstract Unit
setAllWarningsAsErrors(Boolean allWarningsAsErrors)
Report an error if there are any warnings Default value: false abstract Boolean
getSuppressWarnings()
Generate no warnings Default value: false abstract Unit
setSuppressWarnings(Boolean suppressWarnings)
Generate no warnings Default value: false abstract Boolean
getVerbose()
Enable verbose logging output Default value: false abstract Unit
setVerbose(Boolean verbose)
Enable verbose logging output Default value: false abstract List<String>
getFreeCompilerArgs()
A list of additional compiler arguments Default value: emptyList() abstract Unit
setFreeCompilerArgs(List<String> freeCompilerArgs)
A list of additional compiler arguments Default value: emptyList() -
-
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 (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()
-
-
-
-