Brian Wolf <brw...@gmail.com> writes:

> Whats the idiomatic or best method to develop patches to pre-exisitng
> libraries using clojars, do I git the source to my computer, put  put
> [lein-clojars "0.5.0"] in project file, obviously renaming the
> project, and do I take original dependenicies out, or leave in, or am
> I on the wrong track?

I'm assuming you're talking about pushing a modified version of a
library to Clojars rather than just developing and testing some patches
locally (for which you don't need to change anything, just use 
"lein install" to install to your local ~/.m2 repository or symlink the
jars or sources into your project's directory if that's more
convenient).

Leave the original dependencies in as they will still be needed, unless
your patch explicitly removes them.  You can of course remove any
:dev-dependencies you don't want as they're just for the development
environment.   Rename the project to something like:
org.clojars.yourname/someproject.  It's also probably a good idea to
mention in the :description field what you've changed so that when
people are searching they know when to choose your version or the
original.

Of course better than that is to get your changes into the original
library by sending your patches to the original author -- try sending
them a pull request if they're using github.  That way your changes will
be maintained and future bug fixes will be included with them etc.

-- 
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

Reply via email to