[GRADLE-729] java.lang.VerifyError with upload to WebDAV repository Created: 06/Nov/09 Updated: 04/Jan/13 Resolved: 24/Nov/10 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.8 |
Fix Version/s: | 0.9-rc-1 |
Type: | Bug | ||
Reporter: | Jurgen Lust | Assignee: | Hans Dockter |
Resolution: | Fixed | Votes: | 0 |
Description |
I'm trying to upload an artifact to a Maven repository, using WebDAV. I'm using wagon-webdav-1.0-beta-2. The uploadArtifacts section of my build file looks like this: uploadArchives { } Now, when I run 'gradle upload -s', I get the following stacktrace: org.gradle.api.GradleScriptException: Build file '/Users/jlust/Projecten/BeeWorks/meiji-framework/trunk/gradle/hibernate-tools/build.gradle' |
Comments |
Comment by Jurgen Lust [ 06/Nov/09 ] |
Adam suggested the following on the mailing list: This looks like a jar versioning problem. Could you try replacing This resolved the problem. |
Comment by Russel Winder [ 15/Dec/09 ] |
The priority of this issue needs raising to Blocker. Gradle should come with the right jars to be able to do this very critical function. I tried the above hack and it doesn't work. at org.gradle.api.internal.tasks.DefaultTaskExecuter.executeActions(DefaultTaskExecuter.java:64) [gradle-core-0.9-20091215083156+0000.jar:0.9-20091215083156+0000] |
Comment by Russel Winder [ 15/Dec/09 ] |
OK, I got it to work. The trick is not to remove anything it all works fine with Gradle trunk as at 2009-12-15-15:50+00:00. The problem has not been with the libraries but with hasProperty. It transpires that hasProperty ( 'gant_repoUserName' )
returns null even though gant_repoUserName is set. So my problem was nothing to do with jars and versions but entirely to do with assumptions about the code that was put into the GPars build.gradle. |
Comment by Russel Winder [ 15/Dec/09 ] |
The above success is for Gant, there still seems to be a problem for GPars so there is still something amiss. |
Comment by Russel Winder [ 15/Dec/09 ] |
Removing commons-httpclient-3.0.jar and webdavlib-2.0.jar from $GRADLE_HOME/lib fixes the problem for GPars as well. |
Comment by Hans Dockter [ 06/May/10 ] |
Peter Ledbrook recommends to try out the following: Perhaps the documentation should promote the use of 'org.apache.maven.wagon:wagon-webdav-jackrabbit:1.0-beta-6' for Maven deployment? This has the advantage that it works with HTTPClient 3.1 (and perhaps 3.0). |
Comment by Hans Dockter [ 24/Jun/10 ] |
Using the jackrabbit wagon lib solves the problem. I have updated the docs. |