From b43b238030afc77a63a2b48424fc3cf481a779f3 Mon Sep 17 00:00:00 2001 From: Vladimir Ilmov Date: Fri, 17 Jul 2020 16:45:26 +0200 Subject: [PATCH] (CoroutineDebugger) embed agent into gradle JavaExec task #KT-40417 fixed --- .../configuration/KotlinGradleCoroutineDebugProjectResolver.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/idea-gradle/src/org/jetbrains/kotlin/idea/configuration/KotlinGradleCoroutineDebugProjectResolver.kt b/idea/idea-gradle/src/org/jetbrains/kotlin/idea/configuration/KotlinGradleCoroutineDebugProjectResolver.kt index 7725726be30..b47b05de307 100644 --- a/idea/idea-gradle/src/org/jetbrains/kotlin/idea/configuration/KotlinGradleCoroutineDebugProjectResolver.kt +++ b/idea/idea-gradle/src/org/jetbrains/kotlin/idea/configuration/KotlinGradleCoroutineDebugProjectResolver.kt @@ -28,7 +28,7 @@ class KotlinGradleCoroutineDebugProjectResolver : AbstractProjectResolverExtensi //language=Gradle """ gradle.taskGraph.beforeTask { Task task -> - if (task instanceof Test) { + if (task instanceof Test || task instanceof JavaExec) { def kotlinxCoroutinesCoreJar = task.classpath.find { it.name.startsWith("kotlinx-coroutines-core") } if (kotlinxCoroutinesCoreJar) { def results = (kotlinxCoroutinesCoreJar.getName() =~ /kotlinx-coroutines-core\-([\d\.]+)\.jar${'$'}/).findAll()