I don't know if there are deficiencies with this approach, but if you make 
project.clj the 'original source of truth', and generate pom.xml via 'lein 
install', does the auto-generated pom.xml contain everything you would need?

The Clojure build/release process is structured around the pom.xml — making a 
new release automatically updates the pom.xml file so you’d still need to 
manually keep the version in sync (in project.clj) otherwise you risk breaking 
the build.

Additionally, I don’t know what would need to be in project.clj to generate the 
correct pom.xml file.

Frankly, this isn’t really a big deal (as far as I’m concerned). Maintainers 
manage their project.clj how they want. The pom.xml file is the "original 
source of truth". The only downside is some users see project.clj in there and 
think it’s a normal Clojure project and expect the version to be accurate 
(instead of actually reading the README.md which should provide this 
information — based on the "standard" Clojure contrib README.md skeleton that 
has been used in most (or certainly many) of the project repos.

I’ve added a comment to java.jdbc’s project.clj to clarify this:

https://github.com/clojure/java.jdbc/blob/master/project.clj#L1-L3

And:

https://github.com/clojure/java.jdbc/blob/master/project.clj#L15-L19

Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood



-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to