Reputation: 192
I have IntelliJ 2022.1 CE, Gradle 7.4.2, and Java 11. I'm working on a Gradle task, and I want to put a breakpoint in the task. JetBrains' documentation says this is perfectly doable, but I can't get it to stop at the breakpoint. The task is as follows:
task effectiveProperties() {
doLast {
if (project.hasProperty("profile")) {
def defaultConfig = new YamlSlurper().parse(file("src/main/resources/application.yml"))
def profileConfig = new YamlSlurper().parse(file("src/main/resources/application-${profile}.yml"))
println "got there"
}
}
}
I have a breakpoint set at the second def
. I do see the log, so I know execution is passing where the breakpoint is. What is going wrong?
Upvotes: 0
Views: 135