Add '-opt-in' option into Gradle compiler options DSL
^KT-53924 Fixed
This commit is contained in:
committed by
Space Team
parent
2b4abb0c7b
commit
174f39aa46
@@ -165,6 +165,7 @@ public abstract interface class org/jetbrains/kotlin/gradle/dsl/KotlinArtifactsE
|
||||
public abstract interface class org/jetbrains/kotlin/gradle/dsl/KotlinCommonCompilerOptions : org/jetbrains/kotlin/gradle/dsl/KotlinCommonCompilerToolOptions {
|
||||
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 getUseK2 ()Lorg/gradle/api/provider/Property;
|
||||
}
|
||||
|
||||
|
||||
+7
@@ -25,6 +25,13 @@ interface KotlinCommonCompilerOptions : org.jetbrains.kotlin.gradle.dsl.KotlinCo
|
||||
@get:org.gradle.api.tasks.Input
|
||||
val languageVersion: org.gradle.api.provider.Property<org.jetbrains.kotlin.gradle.dsl.KotlinVersion>
|
||||
|
||||
/**
|
||||
* Enable usages of API that requires opt-in with an opt-in requirement marker with the given fully qualified name
|
||||
* Default value: emptyList<String>()
|
||||
*/
|
||||
@get:org.gradle.api.tasks.Input
|
||||
val optIn: org.gradle.api.provider.ListProperty<kotlin.String>
|
||||
|
||||
/**
|
||||
* Compile using experimental K2. K2 is a new compiler pipeline, no compatibility guarantees are yet provided
|
||||
* Default value: false
|
||||
|
||||
Reference in New Issue
Block a user