Interface KotlinCommonCompilerOptions

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Property<KotlinVersion> getApiVersion() Allow using declarations from only the specified version of bundled libraries.
      abstract Property<KotlinVersion> getLanguageVersion() Provide source compatibility with the specified version of Kotlin.
      abstract ListProperty<String> getOptIn() Enable API usages that require opt-in with an opt-in requirement marker with the given fully qualified name.
      abstract Property<Boolean> getProgressiveMode() Enable progressive compiler mode.
      abstract Property<Boolean> getUseK2() Compile using the experimental K2 compiler pipeline.
      • Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerToolOptions

        getAllWarningsAsErrors, getFreeCompilerArgs, getSuppressWarnings, getVerbose
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getApiVersion

        @Optional()@Input() abstract Property<KotlinVersion> getApiVersion()

        Allow using declarations from only 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

      • getLanguageVersion

        @Optional()@Input() abstract Property<KotlinVersion> 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

      • getOptIn

        @Input() abstract ListProperty<String> getOptIn()

        Enable API usages that require opt-in with an opt-in requirement marker with the given fully qualified name.

        Default value: emptyList<String>()

      • getProgressiveMode

        @Input() abstract Property<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

      • getUseK2

        @Input() abstract Property<Boolean> getUseK2()

        Compile using the experimental K2 compiler pipeline. No compatibility guarantees are provided yet.

        Default value: false