Workaround for new MPP dependency configuration limitations

This commit is contained in:
Ilya Gorbunov
2018-08-16 01:04:28 +03:00
parent 6174ae7af6
commit 99de68507d
+5 -2
View File
@@ -13,6 +13,7 @@ node {
}
val antLauncherJar by configurations.creating
val testJsRuntime by configurations.creating
dependencies {
testRuntime(intellijDep())
@@ -33,8 +34,8 @@ dependencies {
testCompile(projectTests(":generators:test-generator"))
testRuntime(projectDist(":kotlin-stdlib"))
testRuntime(projectDist(":kotlin-stdlib-js"))
testRuntime(projectDist(":kotlin-test:kotlin-test-js")) // to be sure that kotlin-test-js built before tests runned
testJsRuntime(projectDist(":kotlin-stdlib-js"))
testJsRuntime(projectDist(":kotlin-test:kotlin-test-js")) // to be sure that kotlin-test-js built before tests runned
testRuntime(projectDist(":kotlin-reflect"))
testRuntime(projectDist(":kotlin-preloader")) // it's required for ant tests
testRuntime(project(":compiler:backend-common"))
@@ -51,6 +52,7 @@ sourceSets {
projectTest {
dependsOn(":dist")
dependsOn(testJsRuntime)
jvmArgs("-da:jdk.nashorn.internal.runtime.RecompilableScriptFunctionData") // Disable assertion which fails due to a bug in nashorn (KT-23637)
workingDir = rootDir
if (findProperty("kotlin.compiler.js.ir.tests.skip")?.toString()?.toBoolean() == true) {
@@ -66,6 +68,7 @@ testsJar {}
projectTest("quickTest") {
dependsOn(":dist")
dependsOn(testJsRuntime)
workingDir = rootDir
systemProperty("kotlin.js.skipMinificationTest", "true")
doFirst {