Example [skip ci]
This commit is contained in:
parent
5fd975c312
commit
b00bc71c1c
1 changed files with 4 additions and 2 deletions
|
|
@ -22,8 +22,10 @@
|
|||
(def xml (xml/parse-str (slurp pom-xml)))
|
||||
|
||||
(defn update-version [elt]
|
||||
(if (= :version (:tag elt))
|
||||
(if-let [t (:tag elt)]
|
||||
(if (= "version" (name t))
|
||||
(assoc elt :content version)
|
||||
elt)
|
||||
elt))
|
||||
|
||||
(println
|
||||
|
|
|
|||
Loading…
Reference in a new issue