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
edu.sc.seis.gradle:macappbundle:2.1.0 and this causes my build to fail like above even after a
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.