Fix test runtime and set idea.home.path for sam with receiver plugin

This commit is contained in:
Vyacheslav Gerasimov
2018-02-07 15:52:16 +03:00
parent 5a85bf36a5
commit a3a46fe259
@@ -4,22 +4,16 @@ description = "Kotlin SamWithReceiver Compiler Plugin"
apply { plugin("kotlin") }
dependencies {
testRuntime(intellijDep())
compileOnly(project(":compiler:frontend"))
compileOnly(project(":compiler:frontend.java"))
compileOnly(project(":compiler:plugin-api"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
runtime(projectDist(":kotlin-stdlib"))
runtime(projectDist(":kotlin-reflect"))
runtime(projectRuntimeJar(":kotlin-compiler"))
testCompile(project(":compiler:backend"))
testCompile(project(":compiler:cli"))
testCompile(project(":compiler:tests-common"))
testCompile(projectTests(":compiler:tests-common"))
testCompile(commonDep("junit:junit"))
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") }
}
sourceSets {
@@ -48,4 +42,7 @@ ideaPlugin {
projectTest {
dependsOn(":prepare:mock-runtime-for-test:dist")
workingDir = rootDir
doFirst {
systemProperty("idea.home.path", intellijRootDir().canonicalPath)
}
}