Workaround for new MPP dependency configuration limitations
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user