aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar/api/resources/Library.java
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/resources/Library.java')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/resources/Library.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Library.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Library.java
index 785937126fc..da5cc35681b 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Library.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Library.java
@@ -87,6 +87,10 @@ public final class Library extends Resource {
return false;
}
+ public static Library createFromMavenIds(String groupId, String artifactId, String version) {
+ return new Library(String.format(Project.MAVEN_KEY_FORMAT, groupId, artifactId), version);
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) {