I’m outputting the test jar using:
task testJar(type: Jar) {
classifier = 'tests'
from sourceSets.test.output
}
and had a guess at test sources:
task testSourcesJar(type: Jar, dependsOn: classes) {
classifier = 'testSources'
from sourceSets.test.allSource
}
But when I attempt to get the dependencies in another project I can get the test classes but not the source code
testCompile 'my.other:project:1.7:tests'