IntelliJ is not stopping at a breakpoint in a Gradle task

108 Views Asked by At

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?

0

There are 0 best solutions below