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()
Provides source compatibility with the specified version of Kotlin. abstract String
getApiVersion()
Allows using declarations only from the specified version of bundled libraries. abstract Boolean
getProgressiveMode()
Enables progressive compiler mode. abstract Set<String>
getOptInAnnotationsInUse()
Enables use of any API that requires opt-in with an opt-in requirement marker containing its fully qualified name. -
-
Method Detail
-
getLanguageVersion
abstract String getLanguageVersion()
Provides source compatibility with the specified version of Kotlin.
Possible values: "1.4 (deprecated)", "1.5 (deprecated)", "1.6", "1.7", "1.8", "1.9", "2.0 (experimental)", "2.1 (experimental)".
Default value:
null
-
getApiVersion
abstract String getApiVersion()
Allows using declarations only from the specified version of bundled libraries.
Possible values: "1.4 (deprecated)", "1.5 (deprecated)", "1.6", "1.7", "1.8", "1.9", "2.0 (experimental)", "2.1 (experimental)".
Default value:
null
-
getProgressiveMode
abstract Boolean getProgressiveMode()
Enables 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 in non-progressive mode may cause compilation errors in progressive mode.
Default value: false
-
getOptInAnnotationsInUse
abstract Set<String> getOptInAnnotationsInUse()
Enables use of any API that requires opt-in with an opt-in requirement marker containing its fully qualified name.
Default value: emptyList<String>()
-
-
-
-