[imltogradle] Exclude 'kotlin.util.compiler-dependencies' module from generation

This module is used as helper module in JPS project module to make sure that IDEA will download
all required dependencies. There are some dependencies which IDEA cannot determine as used so
we force it to download them (kotlinc.kotlin-dist, kotlinc.kotlin-compiler-testdata)

We don't need this module in Gradle project model

This commit fixes:
```
Could not resolve project :prepare:ide-plugin-dependencies:kotlin-compiler-testdata-for-ide.
Required by:
    project :kotlin-ide.kotlin.util.compiler-dependencies
```
This commit is contained in:
Nikita Bobko
2021-08-10 14:41:48 +02:00
parent 747cc7d55d
commit 5455800de4
@@ -99,7 +99,11 @@ fun main() {
error("It's not allowed to have imls in same directory:\n$report")
}
imlFiles.mapNotNull { imlFile -> ijCommunityModuleNameToJpsModuleMapping[imlFile.nameWithoutExtension]?.let { imlFile to it } }
imlFiles
.mapNotNull { imlFile ->
ijCommunityModuleNameToJpsModuleMapping[imlFile.nameWithoutExtension]?.let { imlFile to it }
}
.filter { (_, jpsModule) -> jpsModule.name != "kotlin.util.compiler-dependencies" }
.forEach { (imlFile, jpsModule) ->
println("Processing iml ${imlFile}")
imlFile.parentFile.resolve("build.gradle.kts").writeText(convertJpsModule(imlFile, jpsModule))