From 3c01ad6bc36b118b175768b5d719118eb8c56bcf Mon Sep 17 00:00:00 2001 From: Yahor Berdnikau Date: Wed, 8 Feb 2023 22:20:08 +0100 Subject: [PATCH] Exclude transitive :kotlin-build-common dependency This dependency has non-relocated 'com.intellij' types which could lead to build errors if build classpath will have it earlier in the list then kotlin-compiler-embeddable. ^KT-56414 Fixed --- libraries/tools/kotlin-gradle-plugin/build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/tools/kotlin-gradle-plugin/build.gradle.kts b/libraries/tools/kotlin-gradle-plugin/build.gradle.kts index d53a4c2bca6..5397aebcf75 100644 --- a/libraries/tools/kotlin-gradle-plugin/build.gradle.kts +++ b/libraries/tools/kotlin-gradle-plugin/build.gradle.kts @@ -72,7 +72,10 @@ dependencies { commonRuntimeOnly(project(":kotlin-compiler-embeddable")) commonRuntimeOnly(project(":kotlin-annotation-processing-gradle")) commonRuntimeOnly(project(":kotlin-android-extensions")) - commonRuntimeOnly(project(":kotlin-compiler-runner")) + commonRuntimeOnly(project(":kotlin-compiler-runner")) { + // Excluding dependency with not-relocated 'com.intellij' types + exclude(group = "org.jetbrains.kotlin", module = "kotlin-build-common") + } commonRuntimeOnly(project(":kotlin-scripting-compiler-embeddable")) commonRuntimeOnly(project(":kotlin-scripting-compiler-impl-embeddable"))