Dave Sann <[email protected]> writes:
> Hi,
>
> I run Artifactory as a local repository manager. Currently, I am adding
>
> :omit-default-repositories true
> :repositories {"releases" "http://artifactory/artifactory/libs-release"
> "snapshots"
> "http://artifactory/artifactory/libs-snapshot"
> "local-release"
> "http://artifactory/artifactory/libs-release-local"}
>
> To all my project.clj files.
>
> Does anyone know if you can add this as a default for lein? If so, how?
You can try this:
$ lein version
Leiningen 1.6.1.1 on Java 1.6.0_22 Java HotSpot(TM) 64-Bit Server VM
$ cat ~/.lein/init.clj
(def settings {:omit-default-repositories true
:repositories {"releases"
"http://artifactory/artifactory/libs-release"
"snapshots"
"http://artifactory/artifactory/libs-snapshot"
"local-release"
"http://artifactory/artifactory/libs-release-local"}})
$ lein new testinit2
Created new project in: /home/rw/src/clojure/test/testinit2
$ cat testinit2/project.clj
(defproject testinit2 "1.0.0-SNAPSHOT"
:description "FIXME: write description"
:dependencies [[org.clojure/clojure "1.2.1"]]
:omit-default-repositories true
:repositories {"releases"
"http://artifactory/artifactory/libs-release",
"snapshots" "http://artifactory/artifactory/libs-snapshot",
"local-release" "http://artifactory/artifactory/libs-release-local"})
HTH,
Rob
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en