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