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