b0d964ec8b
* kapt tests launch scripts in a child process relied on JAVA_HOME * tests fail under JDK 11 due to illegal reflexive access
36 lines
682 B
Kotlin
36 lines
682 B
Kotlin
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
api(project(":compiler:cli"))
|
|
|
|
compileOnly(intellijCore())
|
|
|
|
testImplementation(intellijCore())
|
|
testApi(projectTests(":compiler:test-infrastructure-utils"))
|
|
testApi(projectTests(":compiler:tests-common-new"))
|
|
testApiJUnit5()
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" {
|
|
projectDefault()
|
|
generatedTestDir()
|
|
}
|
|
}
|
|
|
|
testsJar()
|
|
|
|
projectTest {
|
|
useJUnitPlatform()
|
|
workingDir = rootDir
|
|
dependsOn(":dist")
|
|
val jdkHome = project.getToolchainJdkHomeFor(JdkMajorVersion.JDK_1_8)
|
|
doFirst {
|
|
environment("JAVA_HOME", jdkHome.get())
|
|
}
|
|
}
|