From 36c158070ff0cb4c65d7ffbac6b81733759eff3e Mon Sep 17 00:00:00 2001 From: Fabrizio Scarponi <36624359+fscarponi@users.noreply.github.com> Date: Mon, 19 Feb 2024 18:18:29 +0100 Subject: [PATCH] Fix PKGS-1379 set plugin gradle tooling to compileOnly (#77) Co-authored-by: Lamberto Basti --- plugin/gradle/build.gradle.kts | 2 +- .../com/jetbrains/packagesearch/plugin/gradle/utils/Utils.kt | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/plugin/gradle/build.gradle.kts b/plugin/gradle/build.gradle.kts index a404d71b..860f5689 100644 --- a/plugin/gradle/build.gradle.kts +++ b/plugin/gradle/build.gradle.kts @@ -25,7 +25,7 @@ intellij { } dependencies { - implementation(projects.plugin.gradle.tooling) + compileOnly(projects.plugin.gradle.tooling) sourceElements(projects.plugin.gradle.tooling) api(projects.plugin.core) sourceElements(projects.plugin.core) diff --git a/plugin/gradle/src/main/kotlin/com/jetbrains/packagesearch/plugin/gradle/utils/Utils.kt b/plugin/gradle/src/main/kotlin/com/jetbrains/packagesearch/plugin/gradle/utils/Utils.kt index 167bf5f2..6ab3ed6b 100644 --- a/plugin/gradle/src/main/kotlin/com/jetbrains/packagesearch/plugin/gradle/utils/Utils.kt +++ b/plugin/gradle/src/main/kotlin/com/jetbrains/packagesearch/plugin/gradle/utils/Utils.kt @@ -10,9 +10,7 @@ import com.jetbrains.packagesearch.plugin.gradle.GradleDependencyModel import kotlin.coroutines.resume import kotlin.coroutines.suspendCoroutine import org.jetbrains.kotlin.psi.psiUtil.parents -import org.jetbrains.plugins.gradle.execution.build.CachedModuleDataFinder import org.jetbrains.plugins.gradle.util.GradleConstants -import org.jetbrains.plugins.gradle.util.gradleIdentityPathOrNull val Module.isGradleSourceSet: Boolean get() {