Add ability to add arbitary content to generated pom file
Example: Add to the project.clj file: :pom-addition [:developers [:developer [:name "My Name"]]] The above will add an element to the generated pom file: <developers> <developer> <name>My Name</name> </developer> </developers>
This commit is contained in:
parent
97ea257186
commit
f6ea9031a3
1 changed files with 2 additions and 1 deletions
|
@ -299,7 +299,8 @@
|
||||||
(distinct (map (partial test-scope-excluded
|
(distinct (map (partial test-scope-excluded
|
||||||
(:dependencies project))
|
(:dependencies project))
|
||||||
(concat (:dependencies project)
|
(concat (:dependencies project)
|
||||||
(:dependencies test-project)))))]))))
|
(:dependencies test-project)))))
|
||||||
|
(when (:pom-addition project) (:pom-addition project))]))))
|
||||||
|
|
||||||
(defn snapshot? [project]
|
(defn snapshot? [project]
|
||||||
(re-find #"SNAPSHOT" (:version project)))
|
(re-find #"SNAPSHOT" (:version project)))
|
||||||
|
|
Loading…
Reference in a new issue