I have a multi-module gradle project and I want to make use of some of the test classes from the shared module in my dependent module.
dependencies {
compile project(':shared-module')
testCompile project(':shared-module'), classifier: 'test-jar'
}
The first dependency works, but the testCompile dependency does not work. I cannot seem to find the syntax for it. The maven equivalent would be:
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>shared-module</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>