[imltogradle] Fix other kotlinc libraries which don't follow kotlinc.* naming

e.g. kotlin-reflect
This commit is contained in:
Nikita Bobko
2021-08-10 14:32:13 +02:00
parent 784273ac5b
commit 747cc7d55d
@@ -135,7 +135,7 @@ fun convertJpsLibrary(lib: JpsLibrary, scope: JpsJavaDependencyScope, exported:
JpsLikeJarDependency("project(\":kotlin-stdlib-jdk7\")", scope, dependencyConfiguration = null, exported = exported)
)
}
lib.name.startsWith("kotlinc.") -> {
lib.name.startsWith("kotlinc.") || mavenRepositoryLibraryDescriptor.version == DEFAULT_KOTLIN_SNAPSHOT_VERSION -> {
val artifactId = mavenRepositoryLibraryDescriptor.artifactId
val dependencyNotation =
if (KOTLIN_REPO_ROOT.resolve("prepare/ide-plugin-dependencies/$artifactId").exists())