I just downloaded Gradle 0.7 and most of my tests fail when I try to use it. They ran fine on 0.6. An expression like

Thread.currentThread().getContextClassLoader().getResource("logback.xml")

returns null. (It's in src/test/resources.)

I'm not using Gradle's TestNG setup by the way (I still need to take a look whether all of the options I need are supported); I'm replacing the test task with one that delegates to the ant task. The classpath of that ant task includes the test classes directory (to which the test resources are copied).

Is this a bug or should I be doing something different with the new classloader changes?

Levi

Reply via email to