From e91e1a7729428e40edef1cb93e4f25732e588bd8 Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Wed, 11 Oct 2023 12:18:13 +0200 Subject: [PATCH] [build] Remove non-needed IR modules from Kotlin plugin ^KT-62510 ^KTIJ-27361 --- build.gradle.kts | 9 +++++++++ .../kotlin-compiler-ir-for-ide/build.gradle.kts | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 5388db114e1..461bf38dafc 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -114,6 +114,15 @@ val irCompilerModules = arrayOf( ":wasm:wasm.ir" ).also { extra["irCompilerModules"] = it } +val irCompilerModulesForIDE = arrayOf( + ":compiler:ir.tree", + ":compiler:ir.serialization.common", + ":compiler:ir.serialization.jvm", + ":compiler:ir.serialization.js", // used in IJ android plugin in `ComposeIrGenerationExtension` + ":compiler:ir.backend.common", + ":compiler:ir.interpreter", +).also { extra["irCompilerModulesForIDE"] = it } + val commonCompilerModules = arrayOf( ":compiler:psi", ":compiler:frontend.common-psi", diff --git a/prepare/ide-plugin-dependencies/kotlin-compiler-ir-for-ide/build.gradle.kts b/prepare/ide-plugin-dependencies/kotlin-compiler-ir-for-ide/build.gradle.kts index 0574c7bcf19..96b26f748b2 100644 --- a/prepare/ide-plugin-dependencies/kotlin-compiler-ir-for-ide/build.gradle.kts +++ b/prepare/ide-plugin-dependencies/kotlin-compiler-ir-for-ide/build.gradle.kts @@ -2,6 +2,6 @@ plugins { kotlin("jvm") } -val irCompilerModules: Array by rootProject.extra +val irCompilerModulesForIDE: Array by rootProject.extra -publishJarsForIde(irCompilerModules.asList()) +publishJarsForIde(irCompilerModulesForIDE.asList())