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)
78 lines
2.6 KiB
Kotlin
78 lines
2.6 KiB
Kotlin
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
testRuntime(intellijDep())
|
|
|
|
compileOnly(project(":kotlin-reflect-api"))
|
|
compile(project(":compiler:util"))
|
|
compile(project(":compiler:light-classes"))
|
|
compile(project(":compiler:frontend"))
|
|
compile(project(":compiler:frontend.java"))
|
|
compile(project(":idea"))
|
|
compile(project(":idea:idea-jvm"))
|
|
compile(project(":idea:idea-core"))
|
|
compile(project(":idea:ide-common"))
|
|
compile(project(":idea:idea-gradle"))
|
|
|
|
compile(androidDxJar())
|
|
|
|
compileOnly(project(":kotlin-android-extensions-runtime"))
|
|
compileOnly(intellijDep()) { includeJars("openapi", "idea", "extensions", "util", "guava", "android-base-common", rootProject = rootProject) }
|
|
compileOnly(intellijPluginDep("android")) {
|
|
includeJars("android", "android-common", "sdk-common", "sdklib", "sdk-tools", "layoutlib-api")
|
|
}
|
|
|
|
testCompile(projectDist(":kotlin-test:kotlin-test-jvm"))
|
|
testCompile(projectTests(":idea:idea-test-framework")) { isTransitive = false }
|
|
testCompile(project(":plugins:lint")) { isTransitive = false }
|
|
testCompile(project(":idea:idea-jvm"))
|
|
testCompile(projectTests(":compiler:tests-common"))
|
|
testCompile(projectTests(":idea"))
|
|
testCompile(projectTests(":idea:idea-gradle"))
|
|
testCompile(commonDep("junit:junit"))
|
|
|
|
testCompile(intellijDep()) { includeJars("gson", rootProject = rootProject) }
|
|
testCompile(intellijPluginDep("properties"))
|
|
testCompileOnly(intellijPluginDep("android")) {
|
|
includeJars("android", "android-common", "sdk-common", "sdklib", "sdk-tools", "layoutlib-api")
|
|
}
|
|
|
|
testRuntime(projectDist(":kotlin-reflect"))
|
|
testRuntime(project(":plugins:android-extensions-ide"))
|
|
testRuntime(project(":plugins:kapt3-idea"))
|
|
testRuntime(project(":sam-with-receiver-ide-plugin"))
|
|
testRuntime(project(":noarg-ide-plugin"))
|
|
testRuntime(project(":allopen-ide-plugin"))
|
|
|
|
testRuntime(intellijPluginDep("android"))
|
|
testRuntime(intellijPluginDep("copyright"))
|
|
testRuntime(intellijPluginDep("coverage"))
|
|
testRuntime(intellijPluginDep("gradle"))
|
|
testRuntime(intellijPluginDep("Groovy"))
|
|
testRuntime(intellijPluginDep("IntelliLang"))
|
|
testRuntime(intellijPluginDep("java-decompiler"))
|
|
testRuntime(intellijPluginDep("java-i18n"))
|
|
testRuntime(intellijPluginDep("junit"))
|
|
testRuntime(intellijPluginDep("maven"))
|
|
testRuntime(intellijPluginDep("testng"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
projectTest {
|
|
workingDir = rootDir
|
|
useAndroidSdk()
|
|
}
|
|
|
|
testsJar {}
|
|
|