Hey Konrad, Konrad Hinsen <konrad.hin...@fastmail.net> writes:
> I would like to deposit a small library on clojars.org. Is it possible > to do this without using either Maven or Leiningen? Neither of these > tools seems to be appropriate for my library. Sure, you can just write the POM by hand. The reason the POM is necessary is so clojars knows the groupId, artifacId, version and description of your lib. So just create the jar however you want (eg just use the 'jar' command-line tool). Then create a pom.xml file with a text editor. If you have no dependencies then at the bare minimum all you need is this: <?xml version="1.0" encoding="UTF-8"?> <project> <modelVersion>4.0.0</modelVersion> <groupId>yourlib</groupId> <artifactId>yourlib</artifactId> <version>1.0.0</version> <description>Does awesome things.</description> </project> Finally just upload it to clojars with scp: scp pom.xml yourlib.jar cloj...@clojars.org: > If my understanding of Leiningen and Maven is correct, neither one can > handle "any Clojure version" as a dependency. But it seems that > Clojars wants a pom.xml, which I don't know how to generate otherwise. There is a syntax for specifying version ranges in dependencies: http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-DependencyVersionRanges It should work with Maven and since Leiningen uses Maven for dependency resolution in theory it should work with Leiningen too (I haven't tried it). However if your lib depends on nothing but clojure.core, then you may as well leave off dependency section entirely, as anyone consuming it is going to specify which version of Clojure they want. Cheers, Alex -- 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