IDEA-145541 Add library from maven: pasted maven coordinates will automatically be converted

This commit is contained in:
Vladislav.Soroka
2017-06-08 12:39:13 +03:00
parent 56d8f19f5c
commit 763e2a2cf7
@@ -401,6 +401,9 @@ public class RepositoryAttachDialog extends DialogWrapper {
private static String extractMavenCoordinates(Document document) {
String groupId = getGroupId(document);
String artifactId = getArtifactId(document);
if (groupId.isEmpty() && artifactId.isEmpty()) {
return null;
}
String version = getVersion(document);
String classifier = getClassifier(document);
String gradleClassifier = classifier.isEmpty() ? "" : ":" + classifier;