Replace direct usages of ideaSdk in tests with property passed from build scripts

This commit is contained in:
Ilya Chernikov
2017-11-08 14:33:37 +01:00
committed by Vyacheslav Gerasimov
parent eb8ef6e803
commit b490a79d95
4 changed files with 19 additions and 7 deletions
+4
View File
@@ -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 {}