--- a/maven-central.el Tue Dec 10 18:05:28 2019 +0200
+++ b/maven-central.el Tue Dec 10 18:07:06 2019 +0200
@@ -146,6 +146,21 @@
(maven-central/versions groupId artifactId))
))
+(defun maven-central/open (groupId artifactId)
+ "Open in Maven Central WEB page info for package."
+ (browse-url (format "https://mvnrepository.com/artifact/%s/%s" groupId artifactId)))
+
+;;;###autoload
+(defun maven-central-open-from-gradle ()
+ (interactive)
+ (let (dependency groupId artifactId)
+ (setq dependency (maven-central/parse-gradle-dependency))
+ (setq groupId (elt dependency 0))
+ (setq artifactId (elt dependency 1))
+ (when (and groupId artifactId)
+ (maven-central/open groupId artifactId))
+ ))
+
;; (maven-central/last-version "junit" "junit")
(provide 'maven-central)