Build: Fix import of kotlin-reflect in JPS build

#KT-29548 Fixed
This commit is contained in:
Vyacheslav Gerasimov
2019-04-30 21:27:11 +03:00
parent b9fe6875e3
commit 5782267d26
3 changed files with 6 additions and 9 deletions
+5 -1
View File
@@ -208,7 +208,11 @@ tasks.getByName("check").dependsOn(dexMethodCount)
artifacts {
listOf(mainJar.name, "runtime", "archives").forEach { configurationName ->
add(configurationName, result)
add(
configurationName,
// idea can correctly import configurations of shadowJar as transitive dependencies which are required by tests
if (kotlinBuildProperties.isInJpsBuildIdeaSync) reflectShadowJar else result
)
}
add("archives", modularJar)