From bb7707836241ba7a12ec60a0e0fe11da025c7849 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Mon, 21 Feb 2022 15:27:33 +0100 Subject: [PATCH] Do not use embeddable compiler for K/N in testMppBuildWithCompilerPlugins --- .../kotlin/org/jetbrains/kotlin/gradle/NewMultiplatformIT.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/NewMultiplatformIT.kt b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/NewMultiplatformIT.kt index ddcd0aa2d51..39201208de1 100644 --- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/NewMultiplatformIT.kt +++ b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/NewMultiplatformIT.kt @@ -1451,7 +1451,10 @@ class NewMultiplatformIT : BaseGradleIT() { ) } - build("assemble", printOptionsTaskName) { + // Do not use embeddable compiler in Kotlin/Native, otherwise it would effectively enable allopen & noarg plugins for Native, and + // we'd be testing that the latest versions of allopen/noarg work with the fixed version of Kotlin/Native (defined in the root + // build.gradle.kts), which is generally not guaranteed. + build("assemble", "-Pkotlin.native.useEmbeddableCompilerJar=false", printOptionsTaskName) { assertSuccessful() assertTasksExecuted(*listOf("Jvm6", "NodeJs", "Linux64").map { ":compileKotlin$it" }.toTypedArray()) assertFileExists("build/classes/kotlin/jvm6/main/com/example/Annotated.class")