If I do ```val foo by tasks.registering { depe...
# gradle
v
If I do
Copy code
val foo by tasks.registering {
    dependsOn(tasks.compileTestKotlin)
    doLast {
        println("FOO: ${kotlin.sourceSets.test.flatMap { it.kotlin.classesDirectory }.map { "$it" }.getOrElse("<not set>")}")
        println("BAR: ${tasks.compileTestKotlin.flatMap { it.destinationDirectory }.map { "$it" }.getOrElse("<not set>")}")
    }
}
Why is
FOO
not set, but
BAR
what I would expect from
FOO
?
Hm, seems to be a bug in KGP until 1.8.20 and as I'm working on a Gradle 7 plugin, I'm pinned to 1.7.10 currently. 😞
😞 1
t
Does you plugin try to configure KGP in any way?
v
To find the break-even version I did this in a practically empty play project
So at least there the answer is no