[2.4-rc-1] Issue with taskArtifact deserialization

Not sure if this is strictly 2.4-related or if it was already present in 2.3 but the following error just showed up after upgrading a plugin:

* What went wrong:
Could not read entry ':lilith:generatePlist' from cache taskArtifacts.bin ([projectDir]/.gradle/2.4-rc-1/taskArtifacts/taskArtifacts.bin).
> edu.sc.seis.gradle.macAppBundle.MacAppBundlePluginExtension; local class incompatible: stream classdesc serialVersionUID = 9165494291494694979, local class serialVersionUID = -5292505454232711225

I upgraded edu.sc.seis.gradle:macappbundle:2.0.0 to edu.sc.seis.gradle:macappbundle:2.1.0 and this causes my build to fail like above even after a gradle clean.

Manually deleting the content of .gradle fixed the issue.

I’d argue that a deserialization failure in the task artifacts cache should be handled as “there is no cache entry” instead of a build failure. A gradle clean should probably always clear cached taskArtifacts, too.

It’s a known issue and unrelated to 2.4. Please see this forum post.

OK, thanks. Missed that one. Just wanted to holler ASAP to prevent a 2.4 delay. :blush: