[Gradle] Rename experimental annotations to opt-in in test data
#KT-38111 In Progress
This commit is contained in:
+4
-4
@@ -730,8 +730,8 @@ class NewMultiplatformIT : BaseGradleIT() {
|
|||||||
// languageVersion = '1.3' // can't do this with Kotlin/Native 1.4+, done below for non-Native tasks
|
// languageVersion = '1.3' // can't do this with Kotlin/Native 1.4+, done below for non-Native tasks
|
||||||
// apiVersion = '1.3' // can't do this with Kotlin/Native 1.4+, done below for non-Native tasks
|
// apiVersion = '1.3' // can't do this with Kotlin/Native 1.4+, done below for non-Native tasks
|
||||||
enableLanguageFeature('InlineClasses')
|
enableLanguageFeature('InlineClasses')
|
||||||
useExperimentalAnnotation('kotlin.ExperimentalUnsignedTypes')
|
optInAnnotation('kotlin.ExperimentalUnsignedTypes')
|
||||||
useExperimentalAnnotation('kotlin.contracts.ExperimentalContracts')
|
optInAnnotation('kotlin.contracts.ExperimentalContracts')
|
||||||
progressiveMode = true
|
progressiveMode = true
|
||||||
}
|
}
|
||||||
project.ext.set("kotlin.mpp.freeCompilerArgsForSourceSet.${'$'}name", ["-Xno-inline"])
|
project.ext.set("kotlin.mpp.freeCompilerArgsForSourceSet.${'$'}name", ["-Xno-inline"])
|
||||||
@@ -824,8 +824,8 @@ class NewMultiplatformIT : BaseGradleIT() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
testMonotonousCheck(
|
testMonotonousCheck(
|
||||||
"languageSettings.useExperimentalAnnotation('kotlin.ExperimentalUnsignedTypes')",
|
"languageSettings.optInAnnotation('kotlin.ExperimentalUnsignedTypes')",
|
||||||
"The dependent source set must use all experimental annotations that its dependency uses."
|
"The dependent source set must use all opt-in annotations that its dependency uses."
|
||||||
)
|
)
|
||||||
|
|
||||||
// check that enabling a bugfix feature and progressive mode or advancing API level
|
// check that enabling a bugfix feature and progressive mode or advancing API level
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ kotlin {
|
|||||||
targetBMain.dependsOn(nativeMain)
|
targetBMain.dependsOn(nativeMain)
|
||||||
|
|
||||||
sourceSets.all {
|
sourceSets.all {
|
||||||
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
|
languageSettings.optInAnnotation("kotlin.RequiresOptIn")
|
||||||
}
|
}
|
||||||
|
|
||||||
targetA.compilations.getByName("main").cinterops.create("curl")
|
targetA.compilations.getByName("main").cinterops.create("curl")
|
||||||
|
|||||||
+1
-1
@@ -75,7 +75,7 @@ kotlin {
|
|||||||
|
|
||||||
|
|
||||||
sourceSets.all {
|
sourceSets.all {
|
||||||
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
|
languageSettings.optInAnnotation("kotlin.RequiresOptIn")
|
||||||
}
|
}
|
||||||
|
|
||||||
targets.withType<KotlinNativeTarget>().forEach { target ->
|
targets.withType<KotlinNativeTarget>().forEach { target ->
|
||||||
|
|||||||
+1
-1
@@ -68,7 +68,7 @@ kotlin {
|
|||||||
|
|
||||||
|
|
||||||
sourceSets.all {
|
sourceSets.all {
|
||||||
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
|
languageSettings.optInAnnotation("kotlin.RequiresOptIn")
|
||||||
}
|
}
|
||||||
|
|
||||||
targets.withType<KotlinNativeTarget>().forEach { target ->
|
targets.withType<KotlinNativeTarget>().forEach { target ->
|
||||||
|
|||||||
+1
-1
@@ -71,7 +71,7 @@ kotlin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sourceSets.all {
|
sourceSets.all {
|
||||||
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
|
languageSettings.optInAnnotation("kotlin.RequiresOptIn")
|
||||||
}
|
}
|
||||||
|
|
||||||
targets.withType<KotlinNativeTarget>().forEach { target ->
|
targets.withType<KotlinNativeTarget>().forEach { target ->
|
||||||
|
|||||||
+1
-1
@@ -67,7 +67,7 @@ kotlin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sourceSets.all {
|
sourceSets.all {
|
||||||
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
|
languageSettings.optInAnnotation("kotlin.RequiresOptIn")
|
||||||
}
|
}
|
||||||
|
|
||||||
targets.withType<KotlinNativeTarget>().forEach { target ->
|
targets.withType<KotlinNativeTarget>().forEach { target ->
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ kotlin {
|
|||||||
targetBMain.dependsOn(nativeMain)
|
targetBMain.dependsOn(nativeMain)
|
||||||
|
|
||||||
sourceSets.all {
|
sourceSets.all {
|
||||||
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
|
languageSettings.optInAnnotation("kotlin.RequiresOptIn")
|
||||||
}
|
}
|
||||||
|
|
||||||
targetA.compilations.getByName("main").cinterops.create("withPosix") {
|
targetA.compilations.getByName("main").cinterops.create("withPosix") {
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ kotlin {
|
|||||||
targetBMain.dependsOn(nativeMain)
|
targetBMain.dependsOn(nativeMain)
|
||||||
|
|
||||||
sourceSets.all {
|
sourceSets.all {
|
||||||
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
|
languageSettings.optInAnnotation("kotlin.RequiresOptIn")
|
||||||
}
|
}
|
||||||
|
|
||||||
targetA.compilations.getByName("main").cinterops.create("sqlite")
|
targetA.compilations.getByName("main").cinterops.create("sqlite")
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ kotlin {
|
|||||||
targetBMain.dependsOn(nativeMain)
|
targetBMain.dependsOn(nativeMain)
|
||||||
|
|
||||||
sourceSets.all {
|
sourceSets.all {
|
||||||
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
|
languageSettings.optInAnnotation("kotlin.RequiresOptIn")
|
||||||
}
|
}
|
||||||
|
|
||||||
targetA.compilations.getByName("main").cinterops.create("sqlite")
|
targetA.compilations.getByName("main").cinterops.create("sqlite")
|
||||||
|
|||||||
Reference in New Issue
Block a user