Files
kotlin-fork/compiler/tests-java8/build.gradle.kts
T
2017-11-10 09:46:41 +01:00

31 lines
886 B
Kotlin

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
apply { plugin("kotlin") }
dependencies {
testCompile(projectTests(":compiler:tests-common"))
testCompile(projectTests(":compiler"))
}
sourceSets {
"main" {}
"test" { projectDefault() }
}
tasks.withType<KotlinCompile> {
kotlinOptions.jdkHome = rootProject.extra["JDK_18"]!!.toString()
kotlinOptions.jvmTarget = "1.8"
}
testsJar {}
projectTest {
executable = "${rootProject.extra["JDK_18"]!!}/bin/java"
dependsOnTaskIfExistsRec("dist", project = rootProject)
dependsOn(":prepare:mock-runtime-for-test:dist")
workingDir = rootDir
systemProperty("kotlin.test.script.classpath", the<JavaPluginConvention>().sourceSets.getByName("test").output.classesDirs.joinToString(File.pathSeparator))
}
val generateTests by generator("org.jetbrains.kotlin.generators.tests.GenerateJava8TestsKt")