This message was deleted.
# configuration-cache
s
This message was deleted.
c
pretty much what it says. Somewhere in your code (or a plugin that is not CC compatible) it’s capturing project or other references that it should not be. The CC report often has the details, including the tree of references to help identify the offending code.
More details here.
a
Thanks! That’s exactly the wrong thing I am doing 😄 referencing a top-level method and variables in a
doLast
closure 😞
what if I capture the output of the top-level function in a scoped variable in a
configure
block? Something like this
Copy code
tasks.withType(UploadDistributionTask::class.java).configureEach {
    val version = topLevelFunction(topLevelVariable)
    doLast {
        println("Uploaded version $version")
    }
}