There is no way to exclude Gradle's own dependencies. Can you provide us with
a build that allows us to reproduce the problem?

PS: Your post didn't reach the mailing list. You have to subscribe via
http://xircles.codehaus.org.

--
Peter Niederwieser
Principal Engineer, Gradleware 
http://gradleware.com
Creator, Spock Framework 
Twitter: @pniederw


cageshen wrote:
> 
> hello :
> 
> my build.gradle is very simple, which only has "ant.importBuild
> 'build.xml'"
> 
> now I run my "gradle task1" ( the task 1 is in build.xml)
> 
> and I get error, [ERROR] [org.gradle.BuildExceptionReporter] Caused by:
> org.dom4j.Do
> cumentException: org.dom4j.DocumentFactory cannot be cast to
> org.dom4j.DocumentF
> actory Nested exception: org.dom4j.DocumentFactory cannot be cast to
> org.dom4j.D
> ocumentFactory
> 
> that because an object created by a class loaded in one classloader cannot
> be cast to the same class loaded in a different classloader, there are two
> dom4j.
> 
> So I delete the dom4j-1.6.1.jar in gradle-1.0-milestone-3/lib, it build
> successfully.
> 
> My question is how to exclude this dom4j-1.6.1.jar rather than delete is
> from lib?
> 
> Thanks very much
> 


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/how-to-exclude-dom4j-tp4683200p4691531.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to