Interface LanguageSettings
-
- All Implemented Interfaces:
public interface LanguageSettings
Represents most common Kotlin compilation settings for an entity.
Note: This interface is soft-deprecated. Instead, better to use existing
compilerOptions
DSL.See also Compiler options DSL documentation.
-
-
Method Summary
Modifier and Type Method Description abstract String
getLanguageVersion()
Provide source compatibility with the specified version of Kotlin. abstract String
getApiVersion()
Allow using declarations only from the specified version of bundled libraries. abstract Boolean
getProgressiveMode()
Enable progressive compiler mode. abstract Set<String>
getOptInAnnotationsInUse()
Enable API usages that require opt-in with an opt-in requirement marker with the given fully qualified name. -
-
Method Detail
-
getLanguageVersion
abstract String getLanguageVersion()
Provide source compatibility with the specified version of Kotlin.
Possible values: "1.4 (deprecated)", "1.5 (deprecated)", "1.6 (deprecated)", "1.7", "1.8", "1.9", "2.0", "2.1 (experimental)"
Default value:
null
-
getApiVersion
abstract String getApiVersion()
Allow using declarations only from the specified version of bundled libraries.
Possible values: "1.4 (deprecated)", "1.5 (deprecated)", "1.6 (deprecated)", "1.7", "1.8", "1.9", "2.0", "2.1 (experimental)"
Default value:
null
-
getProgressiveMode
abstract Boolean getProgressiveMode()
Enable progressive compiler mode.
In this mode, deprecations and bug fixes for unstable code take effect immediately instead of going through a graceful migration cycle. Code written in progressive mode is backward compatible; however, code written without progressive mode enabled may cause compilation errors in progressive mode.
Default value: false
-
getOptInAnnotationsInUse
abstract Set<String> getOptInAnnotationsInUse()
Enable API usages that require opt-in with an opt-in requirement marker with the given fully qualified name.
Default value: emptyList<String>()
-
-
-
-