Skip to content

Commit 8ea9c0b

Browse files
committed
improve write-pom docstring to be more precise
1 parent 604d1e1 commit 8ea9c0b

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Changelog
44
* next
55
* uber - exclude Emacs backup files from uberjar inclusion (useful with local/git deps)
66
* uber - improve error message when file in local or git lib can't be read
7+
* write-pom - improve docstring
78
* v0.9.3 e537cd1 on Feb 1, 2023
89
* NO CHANGES - just moved Maven artifact to io.github.clojure groupId to match git dep
910
* v0.9.2 fe6b140 on Jan 17, 2023

src/main/clojure/clojure/tools/build/api.clj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,13 @@
361361
"Write pom.xml and pom.properties files to the class dir under
362362
META-INF/maven/group-id/artifact-id/ (where Maven typically writes
363363
these files), or to target (exactly one of :class-dir and :target must
364-
be provided). The pom deps, dirs, and repos are either synced from
365-
the src-pom or generated from the basis.
364+
be provided).
365+
366+
Optionally use :src-pom to provide a pom template (or a default will
367+
be generated from the provided attributes). The pom deps, dirs, and
368+
repos from the basis will replace those sections of the template. Note
369+
that the :src-pom template is not validated and should contain required
370+
elements such as modelVersion.
366371
367372
If a repos map is provided it supersedes the repos in the basis.
368373

0 commit comments

Comments
 (0)