Slackbot
04/13/2023, 1:27 AMMike Wacker
04/15/2023, 3:29 AMorg.gradle.debugfork
property.
tasks.withType(JavaCompile) {
// The Error Prone plugin uses a forking compiler for JDK 16+.
// The 'org.gradle.debugfork' option has been added to enable debugging on the forked process.
if (System.properties.getProperty('org.gradle.debugfork', 'false').toBoolean()) {
// Use port 5006 on the off chance that the original process is listening for a debugger on port 5005.
options.forkOptions.jvmArgs << '-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5006'
}
}