Rename UseExperimental->OptIn, Experimental->RequiresOptIn in Gradle plugin
This commit is contained in:
+2
-2
@@ -542,8 +542,8 @@ class NewMultiplatformIT : BaseGradleIT() {
|
||||
assertTasksExecuted(":$it")
|
||||
assertContains(
|
||||
"-language-version 1.3", "-api-version 1.3", "-XXLanguage:+InlineClasses",
|
||||
" -progressive", "-Xuse-experimental=kotlin.ExperimentalUnsignedTypes",
|
||||
"-Xuse-experimental=kotlin.contracts.ExperimentalContracts"
|
||||
" -progressive", "-Xopt-in=kotlin.ExperimentalUnsignedTypes",
|
||||
"-Xopt-in=kotlin.contracts.ExperimentalContracts"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -103,7 +103,7 @@ internal fun applyLanguageSettingsToKotlinTask(
|
||||
}
|
||||
|
||||
languageSettingsBuilder.experimentalAnnotationsInUse.forEach { annotationName ->
|
||||
freeCompilerArgs += "-Xuse-experimental=$annotationName"
|
||||
freeCompilerArgs += "-Xopt-in=$annotationName"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -354,7 +354,7 @@ open class KotlinNativeCompile : AbstractKotlinNativeCompile<KotlinCommonOptions
|
||||
add("-XXLanguage:+$featureName")
|
||||
}
|
||||
experimentalAnnotationsInUse.forEach { annotationName ->
|
||||
add("-Xuse-experimental=$annotationName")
|
||||
add("-Xopt-in=$annotationName")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -545,7 +545,7 @@ open class KotlinNativeLink : AbstractKotlinNativeCompile<KotlinCommonToolOption
|
||||
add("-XXLanguage:+$featureName")
|
||||
}
|
||||
it.experimentalAnnotationsInUse.forEach { annotationName ->
|
||||
add("-Xuse-experimental=$annotationName")
|
||||
add("-Xopt-in=$annotationName")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user