aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/maven/ArtifactId.java
diff options
context:
space:
mode:
authorJon Marius Venstad <jvenstad@yahoo-inc.com>2019-06-19 15:57:28 +0200
committerJon Marius Venstad <jvenstad@yahoo-inc.com>2019-06-19 15:57:28 +0200
commit76c3454dcc9b691149ebfc3910d0b7674f202b15 (patch)
tree342c820fb087fe4faf282d218a6db5cd4cbe0d5d /controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/maven/ArtifactId.java
parent24f48cc21f234fedef9d28672b6f00df6aa852c3 (diff)
Skeleton for getting maven artifact metadata from a remote repository
Diffstat (limited to 'controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/maven/ArtifactId.java')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/maven/ArtifactId.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/maven/ArtifactId.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/maven/ArtifactId.java
new file mode 100644
index 00000000000..21f38084c22
--- /dev/null
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/maven/ArtifactId.java
@@ -0,0 +1,26 @@
+package com.yahoo.vespa.hosted.controller.api.integration.maven;
+
+import static java.util.Objects.requireNonNull;
+
+/**
+ * Identifier for an artifact.
+ *
+ * @author jonmv
+ */
+public class ArtifactId {
+
+ private final String groupId;
+ private final String artifactId;
+
+ public ArtifactId(String groupId, String artifactId) {
+ this.groupId = requireNonNull(groupId);
+ this.artifactId = requireNonNull(artifactId);
+ }
+
+ /** Group ID of this. */
+ public String groupId() { return groupId; }
+
+ /** Artifact ID of this. */
+ public String artifactId() { return artifactId; }
+
+}