On 29 Apr 2014, at 12:40 am, John Engelman <john.r.engel...@gmail.com> wrote:

> Hey everyone -
> I'm trying to write a plugin that uses the Apache ZipOutputStream class in it 
> and I can't seem to get it to work. The class appears to be available via 
> 'gradleApi()', but when I publish the plugin and install it to a project, I 
> end up with a 
> NoClassDefFoundException for ZipOutputStream.
> Then I explicitly added the org.apache.ant:ant dependency to the plugin and 
> republished and now I get a ClassCastException:
> 
> Caused by: java.lang.ClassCastException: org.apache.tools.zip.ZipOutputStream 
> cannot be cast to org.apache.tools.zip.ZipOutputStream.

Have you got a stack trace for this failure?


--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com

Join us for Gradle Summit 2014, June 12th and 13th in Santa Clara, CA: 
http://www.gradlesummit.com

Reply via email to