Replace direct usages of ideaSdk in tests with property passed from build scripts
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
eb8ef6e803
commit
b490a79d95
@@ -1,4 +1,5 @@
|
||||
import org.gradle.jvm.tasks.Jar
|
||||
import org.jetbrains.intellij.IntelliJPluginExtension
|
||||
|
||||
apply { plugin("kotlin") }
|
||||
|
||||
@@ -127,6 +128,9 @@ sourceSets {
|
||||
projectTest {
|
||||
dependsOnTaskIfExistsRec("dist", project = rootProject)
|
||||
workingDir = rootDir
|
||||
afterEvaluate {
|
||||
systemProperty("ideaSdk.path", the<IntelliJPluginExtension>().ideaDependency.classes.canonicalPath)
|
||||
}
|
||||
}
|
||||
|
||||
testsJar {}
|
||||
|
||||
Reference in New Issue
Block a user