Yet another option is to create an additional configuration/Jar, say "sharedTest", as part of the common project. You can then reference this configuration like so:
testCompile project(path: ":common", configuration: "sharedTest"). For more information see: http://gradle.org/latest/docs/userguide/userguide_single.html#javaWithCustomConf -- Peter Niederwieser Developer, Gradle http://www.gradle.org Trainer & Consultant, Gradleware http://www.gradleware.com Creator, Spock Framework http://spockframework.org -- View this message in context: http://gradle.1045684.n5.nabble.com/How-to-reference-a-common-Test-class-from-sub-projects-tp3409484p3409592.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
