70d236cb8d
When TestLoggerFactory is initialized in tests it checks that variable
and it it's not present uses classpath to search for logger configuration.
If this search is unsuccessful a lot of exceptions are written to log:
java.lang.RuntimeException: Could not find installation home path. Please make sure bin/idea.properties is present in the installation directory.
at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:96)
at com.intellij.testFramework.TestLoggerFactory.reconfigure(TestLoggerFactory.java:67)
41 lines
1.2 KiB
Kotlin
41 lines
1.2 KiB
Kotlin
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
testRuntime(intellijDep())
|
|
|
|
compile(project(":compiler:util"))
|
|
compile(project(":jps-plugin"))
|
|
compile(project(":plugins:android-extensions-compiler"))
|
|
compileOnly(intellijDep()) { includeJars("openapi", "jps-builders") }
|
|
compileOnly(intellijPluginDep("android")) { includeJars("jps/android-jps-plugin") }
|
|
compile(intellijPluginDep("android")) { includeJars("jps/android-jps-plugin") }
|
|
|
|
testCompile(projectTests(":jps-plugin"))
|
|
testCompile(project(":compiler:tests-common"))
|
|
testCompile(commonDep("junit:junit"))
|
|
testCompile(projectDist(":kotlin-test:kotlin-test-jvm"))
|
|
testCompile(projectTests(":kotlin-build-common"))
|
|
testCompileOnly(intellijDep()) { includeJars("openapi", "jps-builders") }
|
|
testCompileOnly(intellijDep("jps-build-test")) { includeJars("jps-build-test") }
|
|
testCompileOnly(intellijDep()) { includeJars("jps-model") }
|
|
|
|
testRuntime(intellijPluginDep("android"))
|
|
testRuntime(intellijDep("jps-build-test"))
|
|
testRuntime(intellijDep("jps-standalone"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
projectTest {
|
|
workingDir = rootDir
|
|
useAndroidSdk()
|
|
}
|
|
|
|
testsJar {} |