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. I think what's happening is that the class in the Gradle Jars that are being used, but are being filtered out by the Gradle URLClassLoader structure (I believe some internal Gradle classes are hidden from the build script's class path?) Anyway, is there a certain way I should be handling this? -- John