Add '-progressive' option into Gradle compiler options DSL

^KT-53923 Fixed
This commit is contained in:
Yahor Berdnikau
2023-03-02 16:58:57 +01:00
committed by Space Team
parent 8bb0c5135b
commit 5ddd60a015
9 changed files with 157 additions and 7 deletions
@@ -166,6 +166,7 @@ public abstract interface class org/jetbrains/kotlin/gradle/dsl/KotlinCommonComp
public abstract fun getApiVersion ()Lorg/gradle/api/provider/Property;
public abstract fun getLanguageVersion ()Lorg/gradle/api/provider/Property;
public abstract fun getOptIn ()Lorg/gradle/api/provider/ListProperty;
public abstract fun getProgressiveMode ()Lorg/gradle/api/provider/Property;
public abstract fun getUseK2 ()Lorg/gradle/api/provider/Property;
}
@@ -32,6 +32,13 @@ interface KotlinCommonCompilerOptions : org.jetbrains.kotlin.gradle.dsl.KotlinCo
@get:org.gradle.api.tasks.Input
val optIn: org.gradle.api.provider.ListProperty<kotlin.String>
/**
* 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 the progressive mode is backward compatible; however, code written in non-progressive mode may cause compilation errors in the progressive mode.
* Default value: false
*/
@get:org.gradle.api.tasks.Input
val progressiveMode: org.gradle.api.provider.Property<kotlin.Boolean>
/**
* Compile using experimental K2. K2 is a new compiler pipeline, no compatibility guarantees are yet provided
* Default value: false