Build stdlib-jdk7/8 tests as multiplatform manually

This commit is contained in:
Ilya Gorbunov
2018-01-26 20:56:52 +03:00
parent 9b38e5e7b5
commit 38be99daa3
4 changed files with 20 additions and 8 deletions
+5 -2
View File
@@ -22,7 +22,9 @@ sourceSets {
kotlin {
srcDir 'test'
if(!System.properties.'idea.active') {
srcDir '../test'
srcDir '../jvm/test'
srcDir '../common/test'
srcDir '../common/build/common-test-sources'
}
}
}
@@ -64,7 +66,8 @@ compileKotlin {
}
compileTestKotlin {
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
dependsOn(":kotlin-stdlib-common:preprocessSourcesTest")
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-Xmulti-platform"]
}
compileJava9Sources(project, 'kotlin.stdlib.jdk7')
+5 -2
View File
@@ -24,7 +24,9 @@ sourceSets {
kotlin {
srcDir 'test'
if(!System.properties.'idea.active') {
srcDir '../test'
srcDir '../jvm/test'
srcDir '../common/test'
srcDir '../common/build/common-test-sources'
srcDir '../jdk7/test'
}
}
@@ -67,7 +69,8 @@ compileKotlin {
}
compileTestKotlin {
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
dependsOn(":kotlin-stdlib-common:preprocessSourcesTest")
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-Xmulti-platform"]
}
compileJava9Sources(project, 'kotlin.stdlib.jdk8')
+5 -2
View File
@@ -22,7 +22,9 @@ sourceSets {
kotlin {
srcDir 'test'
if(!System.properties.'idea.active') {
srcDir '../test'
srcDir '../jvm/test'
srcDir '../common/test'
srcDir '../common/build/common-test-sources'
}
}
}
@@ -57,7 +59,8 @@ compileKotlin {
}
compileTestKotlin {
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
dependsOn(":kotlin-stdlib-common:preprocessSourcesTest")
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-Xmulti-platform"]
}
kotlin.experimental.coroutines 'enable'
+5 -2
View File
@@ -24,7 +24,9 @@ sourceSets {
kotlin {
srcDir 'test'
if(!System.properties.'idea.active') {
srcDir '../test'
srcDir '../jvm/test'
srcDir '../common/test'
srcDir '../common/build/common-test-sources'
srcDir '../jre7/test'
}
}
@@ -60,7 +62,8 @@ compileKotlin {
}
compileTestKotlin {
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-Xnormalize-constructor-calls=enable"]
dependsOn(":kotlin-stdlib-common:preprocessSourcesTest")
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-Xnormalize-constructor-calls=enable", "-Xmulti-platform"]
}
kotlin.experimental.coroutines 'enable'