(CoroutineDebugger) embed agent into gradle JavaExec task
#KT-40417 fixed
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ class KotlinGradleCoroutineDebugProjectResolver : AbstractProjectResolverExtensi
|
|||||||
//language=Gradle
|
//language=Gradle
|
||||||
"""
|
"""
|
||||||
gradle.taskGraph.beforeTask { Task task ->
|
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") }
|
def kotlinxCoroutinesCoreJar = task.classpath.find { it.name.startsWith("kotlinx-coroutines-core") }
|
||||||
if (kotlinxCoroutinesCoreJar) {
|
if (kotlinxCoroutinesCoreJar) {
|
||||||
def results = (kotlinxCoroutinesCoreJar.getName() =~ /kotlinx-coroutines-core\-([\d\.]+)\.jar${'$'}/).findAll()
|
def results = (kotlinxCoroutinesCoreJar.getName() =~ /kotlinx-coroutines-core\-([\d\.]+)\.jar${'$'}/).findAll()
|
||||||
|
|||||||
Reference in New Issue
Block a user