Build: Fix unconditional adding kotlin-reflect.jar for JPS build

Should be added only when JPS build enabled to avoid kotlin-reflect
reindexing after each build
This commit is contained in:
Vyacheslav Gerasimov
2021-11-27 04:22:46 +03:00
committed by teamcity
parent 8c71e38c92
commit 156ecce961
2 changed files with 9 additions and 2 deletions
+4 -1
View File
@@ -12,8 +12,11 @@ dependencies {
testApi(projectTests(":generators:test-generator"))
testRuntimeOnly(project(":kotlin-reflect"))
testRuntimeOnly(toolsJar())
testRuntimeOnly(intellijPluginDep("java"))
if (isIdeaActive) testRuntimeOnly(files("${rootProject.projectDir}/dist/kotlinc/lib/kotlin-reflect.jar"))
if (kotlinBuildProperties.isInJpsBuildIdeaSync)
testRuntimeOnly(files("${rootProject.projectDir}/dist/kotlinc/lib/kotlin-reflect.jar"))
}
sourceSets {