IDEA-112870 Changing a library's scope from compile to testCompile in build.gradle does not change IDEA module settings

This commit is contained in:
Vladislav.Soroka
2013-09-04 15:50:15 +04:00
parent d40c1f8ee5
commit 7d20ed193b
@@ -220,9 +220,10 @@ public class LibraryDependencyDataService extends AbstractDependencyDataService<
}
}
else if (entry instanceof LibraryOrderEntry) {
String libraryName = ((LibraryOrderEntry)entry).getLibraryName();
LibraryDependencyData existing = projectLibrariesToImport.remove(libraryName);
if (existing != null) {
final LibraryOrderEntry libraryOrderEntry = (LibraryOrderEntry)entry;
final String libraryName = libraryOrderEntry.getLibraryName();
final LibraryDependencyData existing = projectLibrariesToImport.remove(libraryName);
if (existing != null && libraryOrderEntry.getScope() == existing.getScope()) {
toImport.remove(existing);
}
else if (!hasUnresolvedLibraries) {