0db69cadb6
tools.jar differs between different versions of JDK reducing cache reuse so better to not leak it to other modules
42 lines
1.2 KiB
Kotlin
42 lines
1.2 KiB
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
testCompile(project(":kotlin-scripting-compiler"))
|
|
testCompile(projectTests(":compiler:tests-common"))
|
|
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
|
testCompile(projectTests(":generators:test-generator"))
|
|
testRuntime(project(":kotlin-reflect"))
|
|
testRuntimeOnly(toolsJar())
|
|
testRuntime(intellijDep())
|
|
Platform[192].orHigher {
|
|
testRuntimeOnly(intellijPluginDep("java"))
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
"main" {}
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions.jdkHome = rootProject.extra["JDK_18"]!!.toString()
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
|
|
projectTest(parallel = true) {
|
|
executable = "${rootProject.extra["JDK_18"]!!}/bin/java"
|
|
dependsOn(":dist")
|
|
workingDir = rootDir
|
|
systemProperty("kotlin.test.script.classpath", testSourceSet.output.classesDirs.joinToString(File.pathSeparator))
|
|
systemProperty("idea.home.path", intellijRootDir().canonicalPath)
|
|
}
|
|
|
|
val generateTests by generator("org.jetbrains.kotlin.generators.tests.GenerateJava8TestsKt")
|
|
|
|
testsJar()
|