On 31/05/10 4:36 AM, Peter Niederwieser wrote:
After switching the Spock build from Gradle 0.8 to 0.9-preview-1, I got lots of test errors. After explicitly adding JUnit 4.8.1 as a test runtime dependency (it had already been a compile dependency), most of these errors went away. Does this mean that compile dependencies are no longer on the test runtime class path?
Nothing should have changed here. Any dependency declared in the compile configuration should be included in the testRuntime configuration. You shouldn't have to add junit to the testCompile configuration if it is already declared in the compile configuration.
I wonder if you've run into http://jira.codehaus.org/browse/GRADLE-909, which has since been fixed. Could you try running gradle -C rebuild clean, and see if the problem goes away.
-- Adam Murdoch Gradle Developer http://www.gradle.org CTO, Gradle Inc. - Gradle Training, Support, Consulting http://www.gradle.biz --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
