gradle: fix merging of library and module dependencies

This commit is contained in:
Vladislav.Soroka
2015-12-10 18:58:25 +03:00
parent a3ab3c5afc
commit 65b5b7c840
@@ -412,7 +412,7 @@ public class GradleProjectResolver implements ExternalSystemProjectResolver<Grad
ContainerUtil.addAllNotNull(compileSet,
moduleData.getCompileOutputPath(ExternalSystemSourceType.SOURCE),
moduleData.getCompileOutputPath(ExternalSystemSourceType.RESOURCE));
if (!compileSet.isEmpty() && libraryPaths.containsAll(compileSet)) {
if (!compileSet.isEmpty() && ContainerUtil.intersects(libraryPaths, compileSet)) {
targetModuleOutputPaths = compileSet;
}
else {
@@ -420,7 +420,7 @@ public class GradleProjectResolver implements ExternalSystemProjectResolver<Grad
ContainerUtil.addAllNotNull(testSet,
moduleData.getCompileOutputPath(ExternalSystemSourceType.TEST),
moduleData.getCompileOutputPath(ExternalSystemSourceType.TEST_RESOURCE));
if (compileSet.isEmpty() && libraryPaths.containsAll(testSet)) {
if (compileSet.isEmpty() && ContainerUtil.intersects(libraryPaths, testSet)) {
targetModuleOutputPaths = testSet;
}
}