mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-145541 Add library from maven: pasted maven coordinates will automatically be converted
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user