Pill: Fix test dependencies handling

This commit is contained in:
Yan Zhulanow
2019-04-18 22:15:09 +03:00
parent 038c320594
commit b35ed2602c
@@ -52,7 +52,7 @@ fun Project.resolveDependencies(
return true
}
if (forTests) {
if (forTests && artifact.classifier == "tests") {
addSourceSet(SourceSet.TEST_SOURCE_SET_NAME, "test") || addSourceSet(SourceSet.MAIN_SOURCE_SET_NAME, "src")
} else {
addSourceSet(SourceSet.MAIN_SOURCE_SET_NAME, "src")