don't skip maven scope if dependency is new for a project (IDEA-180865)

This commit is contained in:
Anna.Kozlova
2018-01-12 13:55:52 +01:00
parent f492c2dbd6
commit 4dbfd0108c
2 changed files with 2 additions and 1 deletions
@@ -54,7 +54,7 @@ public abstract class JUnitExternalLibraryDescriptor extends ExternalLibraryDesc
}
private JUnitExternalLibraryDescriptor(final String groupId, final String artifactId, final String version) {
super(groupId, artifactId, version + ".0", version + ".+");
super(groupId, artifactId, version + ".0", version + ".999");
myVersion = version;
}
@@ -109,6 +109,7 @@ public class MavenProjectModelModifier extends JavaProjectModelModifier {
if (managedDependency == null || StringUtil.isEmpty(managedDependency.getVersion().getStringValue())) {
version = selectVersion(mavenId, minVersion, maxVersion);
scopeToSet = mavenScope;
}
}