IJ-CR-27350 (2) Work around broken kotlin-annotation-processing when kotlin < 1.7.20
^KTIJ-22255 Fixed KTIJ-22176 IJ-CR-27350 This commit is a proper fix for KTIJ-22176. Previous 72e906d6e95f4 fix contained two problems: 1. Incorrect error handling (if any of `loadDependenciesSync` inside `flatMap` returns empty list then it's not propagated which causes KTIJ-22255) 2. Hardcoded KOTLIN_DIST_FOR_JPS_META_DEPS contains "trove4j", "kotlinx-coroutines-core-jvm", and "annotations". All of those artifacts have different groupId and version. It wasn't taken into account. Luckily, we caught that with test `JpsCompilerMultiModule.testJpsCompilerMultiModule` Note: `distinct` isn't really needed anymore, but I left it because it's a more safe code. (cherry picked from commit 1db159f8e2ee9be4f90b6e4d4387a3ec6fa45a97) GitOrigin-RevId: cbf8dbfe7ce9f019c6f016772744268f78766a5d
Showing
+24 -54
Please register or sign in to comment