Rename artifact-namespace & artifact-name
...to group-id and artifact-id
This commit is contained in:
parent
66cef075e8
commit
8de742d231
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue