On 22/07/2011, at 8:08 AM, Matt Stine wrote:

> Hi all-
> 
> I am in the progress of migrating a legacy project into Gradle.
> 
> The project is now composed of multiple subprojects...let's call them
> A, B, C, D, ...
> 
> I have tests in D/src/test/java that inherit from a class defined in
> C/src/test/java.
> 
> What's the most straightforward way to change D's testCompile
> classpath to see the binaries generated by C's testCompile?

In D:

evaluationDependsOn(':C')

dependencies {
    testCompile project(':C').sourceSets.test.runtimeClasspath
}


--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com

Reply via email to