I just discovered that archive `AbstractCopyTask`,...
# community-support
b
I just discovered that archive
AbstractCopyTask
, disable output caching if you call some methods,
fileMatching
for example. I would think it has to do with the action serializibility. github.com/gradle/gradle/commit/510d032ec36b…#…
v
So?
b
it's not written in the doc
v
Maybe this can even be removed in the meantime with all those changes done for CC and so on 🤷‍♂️
b
indeed
v
But no idea whether @lptr still knows the details of 10 years ago. I don't find an issue or pr for that
But maybe my search skill is just rusty
b
I was kind surprised though about this behavior for simple lambdas. Especially since I believe the closure lamnda serialization improved a lot in 10 years
e
if a lambda captures unserializable types like
project
then that's a problem with CC. but some of them (
filter([map, ]class)
,
expand(map)
,
rename({string|regex}, string)
) aren't lambdas that could capture. so even more so than the other methods, I don't see why they should prevent caching
v
Maybe it's expected that they do unforeseeable things 🤷‍♂️
b
Also there's that, so maybe things won't change as much.
v
For the built-in tasks, yes, nothing should change