Build common standard library headers and kotlin-test (common and jvm) as multiplatform projects.

This commit is contained in:
Ilya Gorbunov
2017-03-06 19:47:51 +03:00
parent 780e12f04a
commit 08fa304b6f
11 changed files with 272 additions and 121 deletions
+18 -1
View File
@@ -1,8 +1,9 @@
description = 'Kotlin Standard Library JRE 7 extension'
dependencies {
compile project(':kotlin-stdlib')
testCompile project(':kotlin-test-parent:kotlin-test-junit')
testCompile project(':kotlin-test:kotlin-test-junit')
}
sourceSets {
@@ -42,3 +43,19 @@ compileTestKotlin {
kotlinOptions.jdkHome = JDK_17
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
}
test {
executable = "$JDK_17/bin/java"
}
task testJre6Tests(type: Test) {
dependsOn project(':kotlin-stdlib').tasks.testClasses
group = "verification"
executable = "$JDK_17/bin/java"
testClassesDir = project.file('../build/classes/test')
classpath = project.files('../build/classes/test') + sourceSets.test.compileClasspath
}
check.dependsOn testJre6Tests