Fix test runtime and set idea.home.path for sam with receiver plugin
This commit is contained in:
@@ -4,22 +4,16 @@ description = "Kotlin SamWithReceiver Compiler Plugin"
|
|||||||
apply { plugin("kotlin") }
|
apply { plugin("kotlin") }
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
testRuntime(intellijDep())
|
|
||||||
|
|
||||||
compileOnly(project(":compiler:frontend"))
|
compileOnly(project(":compiler:frontend"))
|
||||||
compileOnly(project(":compiler:frontend.java"))
|
compileOnly(project(":compiler:frontend.java"))
|
||||||
compileOnly(project(":compiler:plugin-api"))
|
compileOnly(project(":compiler:plugin-api"))
|
||||||
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
||||||
runtime(projectDist(":kotlin-stdlib"))
|
|
||||||
runtime(projectDist(":kotlin-reflect"))
|
|
||||||
runtime(projectRuntimeJar(":kotlin-compiler"))
|
|
||||||
|
|
||||||
testCompile(project(":compiler:backend"))
|
testCompile(project(":compiler:backend"))
|
||||||
testCompile(project(":compiler:cli"))
|
testCompile(project(":compiler:cli"))
|
||||||
testCompile(project(":compiler:tests-common"))
|
testCompile(project(":compiler:tests-common"))
|
||||||
testCompile(projectTests(":compiler:tests-common"))
|
testCompile(projectTests(":compiler:tests-common"))
|
||||||
testCompile(commonDep("junit:junit"))
|
testCompile(commonDep("junit:junit"))
|
||||||
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -48,4 +42,7 @@ ideaPlugin {
|
|||||||
projectTest {
|
projectTest {
|
||||||
dependsOn(":prepare:mock-runtime-for-test:dist")
|
dependsOn(":prepare:mock-runtime-for-test:dist")
|
||||||
workingDir = rootDir
|
workingDir = rootDir
|
||||||
|
doFirst {
|
||||||
|
systemProperty("idea.home.path", intellijRootDir().canonicalPath)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user