Trying to create a small custom gradle task for Spring Boot that initially looks like this:
gradle bootRun --debug-jvm
The task should look like this: gradle debugRun
I tried this, but it does not work:
task debugRun(dependsOn: 'bootRun') << { applicationDefaultJvmArgs = ['--debug-jvm'] }
How to pass this debug flag to bootRun task?
source share