I'd like to do a `lein with-profile +local-repo release` and `lein with-profile +clojars release`. This way I want to control which repo the deploy goes to.
I tried but it didn't work. Here you find my attempt: https://github.com/henrik42/buttle/blob/master/project.clj#L92 Looking at the sources of the `release`, `do` and `with-profile` tasks I realized that the `release` task re-loads `project.clj` for each task it invokes. And it has to. Otherwise it would not "see" then change/effects of ["change" "version" "leiningen.release/bump-version"]. And that's the reason why a release via `do` does not work. So I'm stuck. Releasing via `with-profile` and `do` does not work since `do` does not re-load `project.clj`. And releasing via `with-profile` and `release` does not work because `release` has no concept of a profile and `with-profile` does not work on `release` because `release` re-loads `project.clj` without "applying" the currently active profiles. My current solution is to split up the release steps into three seperate `do` tasks (release-prepare!, release-deploy! and release-finish!). With each `lein` invokation the `project.clj` gets loaded and things work fine: https://github.com/henrik42/buttle/blob/master/project.clj#L50 But I'd like to do this in one lein invokation. In https://clojurians-log.clojureverse.org/leiningen/2016-03-04.html (around dmuylwyk <https://clojurians-log.clojureverse.org/leiningen/2016-03-04.html>17:03:35 <https://clojurians-log.clojureverse.org/leiningen/2016-03-04/1457113235.000175>) this topic is discussed also. Any idea? Maybe there is a better way to do the trick with the repos? Regards, Henrik -- 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.