Prevent IDEA attach debugger to serialize task
Workaround for IDEA-200192 IDEA patches JavaExec tasks and adds agentlib:jdwp= jvm parameter when running under debug. Replace parameters after IDEA has finished patching parameters.
This commit is contained in:
@@ -26,7 +26,12 @@ val serialize by tasks.creating(JavaExec::class) {
|
||||
|
||||
classpath(rootProject.buildscript.configurations["bootstrapCompilerClasspath"])
|
||||
main = "org.jetbrains.kotlin.serialization.builtins.RunKt"
|
||||
jvmArgs("-Didea.io.use.nio2=true")
|
||||
|
||||
doFirst {
|
||||
// Reassign to remove debugger options. Workaround for IDEA-200192.
|
||||
jvmArgs = listOf("-Didea.io.use.nio2=true")
|
||||
}
|
||||
|
||||
args(outDir, *inDirs)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user