Hi,

how is computed the classpath used for running unit tests?

My code relies on an old asm version that I have configured in my dependencies. When running the tests with -d I can see

Using application classpath [...
file:/home/marc/.gradle/cache/asm/asm/jars/asm-3.1.jar
...]
Using implementation classpath [...
file:/home/marc/misc/gradle/gradle-0.9-preview-1/lib/asm-all-3.2.jar
...]

and then I get a:
java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;Z)V

what seems to indicate that the wrong asm version is used: one added by gradle for its own purpose and not the one that I've configured.

Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com


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

   http://xircles.codehaus.org/manage_email


Reply via email to