From 6140854fa69560eea4d9999df0b71854d8863abf Mon Sep 17 00:00:00 2001 From: Sebastian Sellmair Date: Mon, 10 Jul 2023 20:22:23 +0200 Subject: [PATCH] [Gradle] IdeBinaryDependencyResolver: Do not link dependencies to 'isIdeaProjectLevel' by default As this caching of dependencies would also require to include the attributes (or name of the variant) into the coordinates ^KT-60053 Verification Pending --- .../ide/dependencyResolvers/IdeBinaryDependencyResolver.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/ide/dependencyResolvers/IdeBinaryDependencyResolver.kt b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/ide/dependencyResolvers/IdeBinaryDependencyResolver.kt index 2eac977e259..5ef765b26fe 100644 --- a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/ide/dependencyResolvers/IdeBinaryDependencyResolver.kt +++ b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/ide/dependencyResolvers/IdeBinaryDependencyResolver.kt @@ -180,7 +180,12 @@ class IdeBinaryDependencyResolver @JvmOverloads constructor( logger.warn("Unhandled componentId: ${componentId.javaClass}") null } - }?.also { dependency -> dependency.gradleArtifact = artifact } + }?.also { dependency -> + dependency.gradleArtifact = artifact + if (dependency is IdeaKotlinResolvedBinaryDependency) { + dependency.isIdeaProjectLevel = false + } + } }.toSet() return resolvedDependencies + unresolvedDependencies