Build: Use fake ideaHome for tests with intellij build number only

#KTI-82
This commit is contained in:
Vyacheslav Gerasimov
2021-12-02 03:31:00 +03:00
committed by teamcity
parent 516e54a434
commit 944c7990a1
10 changed files with 32 additions and 14 deletions
@@ -62,15 +62,14 @@ projectTest {
workingDir = rootDir
useAndroidJar()
val androidPluginPath = File(intellijRootDir(), "plugins/android/lib").canonicalPath
systemProperty("ideaSdk.androidPlugin.path", androidPluginPath)
val androidExtensionsRuntimeProvider = project.provider {
androidExtensionsRuntimeForTests.asPath
}
val robolectricClasspathProvider = project.provider {
robolectricClasspath.asPath
}
doFirst {
systemProperty("androidExtensionsRuntime.classpath", androidExtensionsRuntimeProvider.get())
systemProperty("robolectric.classpath", robolectricClasspathProvider.get())