Vampire
01/26/2024, 4:36 PMval 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
?Vampire
01/26/2024, 4:48 PMtapchicoma
01/26/2024, 5:26 PMVampire
01/26/2024, 5:29 PMVampire
01/26/2024, 5:29 PM