Build stdlib-jdk7/8 tests as multiplatform manually
This commit is contained in:
@@ -22,7 +22,9 @@ sourceSets {
|
|||||||
kotlin {
|
kotlin {
|
||||||
srcDir 'test'
|
srcDir 'test'
|
||||||
if(!System.properties.'idea.active') {
|
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 {
|
compileTestKotlin {
|
||||||
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
|
dependsOn(":kotlin-stdlib-common:preprocessSourcesTest")
|
||||||
|
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-Xmulti-platform"]
|
||||||
}
|
}
|
||||||
|
|
||||||
compileJava9Sources(project, 'kotlin.stdlib.jdk7')
|
compileJava9Sources(project, 'kotlin.stdlib.jdk7')
|
||||||
|
|||||||
@@ -24,7 +24,9 @@ sourceSets {
|
|||||||
kotlin {
|
kotlin {
|
||||||
srcDir 'test'
|
srcDir 'test'
|
||||||
if(!System.properties.'idea.active') {
|
if(!System.properties.'idea.active') {
|
||||||
srcDir '../test'
|
srcDir '../jvm/test'
|
||||||
|
srcDir '../common/test'
|
||||||
|
srcDir '../common/build/common-test-sources'
|
||||||
srcDir '../jdk7/test'
|
srcDir '../jdk7/test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -67,7 +69,8 @@ compileKotlin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
compileTestKotlin {
|
compileTestKotlin {
|
||||||
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
|
dependsOn(":kotlin-stdlib-common:preprocessSourcesTest")
|
||||||
|
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-Xmulti-platform"]
|
||||||
}
|
}
|
||||||
|
|
||||||
compileJava9Sources(project, 'kotlin.stdlib.jdk8')
|
compileJava9Sources(project, 'kotlin.stdlib.jdk8')
|
||||||
|
|||||||
@@ -22,7 +22,9 @@ sourceSets {
|
|||||||
kotlin {
|
kotlin {
|
||||||
srcDir 'test'
|
srcDir 'test'
|
||||||
if(!System.properties.'idea.active') {
|
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 {
|
compileTestKotlin {
|
||||||
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
|
dependsOn(":kotlin-stdlib-common:preprocessSourcesTest")
|
||||||
|
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-Xmulti-platform"]
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin.experimental.coroutines 'enable'
|
kotlin.experimental.coroutines 'enable'
|
||||||
|
|||||||
@@ -24,7 +24,9 @@ sourceSets {
|
|||||||
kotlin {
|
kotlin {
|
||||||
srcDir 'test'
|
srcDir 'test'
|
||||||
if(!System.properties.'idea.active') {
|
if(!System.properties.'idea.active') {
|
||||||
srcDir '../test'
|
srcDir '../jvm/test'
|
||||||
|
srcDir '../common/test'
|
||||||
|
srcDir '../common/build/common-test-sources'
|
||||||
srcDir '../jre7/test'
|
srcDir '../jre7/test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -60,7 +62,8 @@ compileKotlin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
compileTestKotlin {
|
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'
|
kotlin.experimental.coroutines 'enable'
|
||||||
|
|||||||
Reference in New Issue
Block a user