I’m having a problem with sporadic failures of delete/clean tasks in our build.
Something isn’t giving up its file handles when its done with them. And since the Daemon is long-lived those resources aren’t naturally reclaimed by the OS between gradle invocations.
It could be Gradle itself or, more likely, a poorly written first or third party plugin. But I don’t know how to work backwards from “Unable to delete file” to a line of code somewhere.