krallin / gradle-macappbundle

Automatically exported from code.google.com/p/gradle-macappbundle
1 stars 0 forks source link

1.0.4 causes serial exception #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
when doing createDmg i get this exception (i filtered this out of it)

Caused by: java.io.InvalidClassException: 
edu.sc.seis.gradle.macAppBundle.MacAppBundlePluginExtension; local class 
incompatible: stream classdesc serialVersionUID = 680222416952631697, local 
class serialVersionUID = 2807445984896854523

1.0.3 build goes fine..

Original issue reported on code.google.com by maescool on 24 Mar 2012 at 3:13

GoogleCodeExporter commented 9 years ago

This is a bug in gradle, imho. See http://issues.gradle.org/browse/GRADLE-2084

Basically you have a serialized object from 1.0.3 which java can't deserialize 
into the corresponding 1.0.4 object. There is no way, afaik, for the plugin to 
do anything to stop this.

The work around is to do a 'gradle -C rebuild clean'. This unfortunately also 
causes a redownload of all dependencies, so do it when you have a good 
connection.

Sorry, I have submitted a patch to the gradle issue tracker, but as of yet it 
has not been accepted. Hopefully it will be.

Original comment by crotwell@seis.sc.edu on 26 Mar 2012 at 1:47