[Native][tests] Depend on project(":kotlin-native-compiler-embeddable") only when K/N compiler classpath is not explicitly specified as Gradle property

This commit is contained in:
Dmitriy Dolovov
2021-12-22 13:17:49 +03:00
parent d1083c51e2
commit 3c6605fde5
+3 -1
View File
@@ -97,7 +97,9 @@ fun blackBoxTest(taskName: String, vararg tags: String) = projectTest(taskName,
}
TestProperty.COMPILER_CLASSPATH.setUpFromGradleProperty(this) {
configurations.detachedConfiguration(dependencies.project(":kotlin-native-compiler-embeddable")).files.joinToString(";")
val kotlinNativeCompilerEmbeddable = configurations.detachedConfiguration(dependencies.project(":kotlin-native-compiler-embeddable"))
dependsOn(kotlinNativeCompilerEmbeddable)
kotlinNativeCompilerEmbeddable.files.joinToString(";")
}
// Pass Gradle properties as JVM properties so test process can read them.