Rename artifact-namespace & artifact-name

...to group-id and artifact-id
This commit is contained in:
Wes Morgan 2017-02-01 19:24:45 -07:00
parent 66cef075e8
commit 8de742d231
No known key found for this signature in database
GPG key ID: 5639E4CBFA17DC84

View file

@ -49,13 +49,13 @@
[profile] [profile]
(vector? profile)) (vector? profile))
(defn artifact-namespace (defn group-id
[id] [id]
(if (string? id) (if (string? id)
(first (str/split id #"/")) (first (str/split id #"/"))
(or (namespace id) (name id)))) (or (namespace id) (name id))))
(defn artifact-name (defn artifact-id
[id] [id]
(if (string? id) (if (string? id)
(last (str/split id #"/")) (last (str/split id #"/"))
@ -63,8 +63,8 @@
(defn artifact-map (defn artifact-map
[id] [id]
{:artifact-id (artifact-name id) {:artifact-id (artifact-id id)
:group-id (artifact-namespace id)}) :group-id (group-id id)})
(defn exclusion-map (defn exclusion-map
"Transform an exclusion vector into a map that is easier to combine with "Transform an exclusion vector into a map that is easier to combine with