3 ms·
Just to collaborate a little bit on this point. With leiningen things are not too bad. A typical deployment instruction file (project.clj) looks like this and
by gislik 16y ago
Just to collaborate a little bit on this point. With leiningen things are not too bad.
A typical deployment instruction file (project.clj) looks like this and with "lein deps" you're all set up in a few seconds.
(defproject leiningen "0.5.0-SNAPSHOT"
:description "A build tool designed to not set your hair on fire."
:url "http://github.com/technomancy/leiningen http://github.com/technomancy/leiningen
:dependencies [[org.clojure/clojure "1.1.0"]
[org.clojure/clojure-contrib "1.1.0"]]
:dev-dependencies [[swank-clojure "1.2.1"]])
- gislik 16y agoouch ... formatting is clearly not preserved :( But take a look at https://github.com/technomancy/leiningen https://github.com/technomancy/leiningen
- jedsmith 16y agoFour spaces in front of each line will preserve formatting. int main(int argc, char **argv) { printf("whee!\n"); return 0; }
- dpritchett 16y ago(defproject leiningen "1.5.0-RC1" :description "A build tool designed not to set your hair on fire." :url "https://github.com/technomancy/leiningen" :license {:name "Eclipse Public License"} :dependencies [[org.clojure/clojure "1.2.0"] [org.clojure/clojure-contrib "1.2.0"] [lancet "1.0.0"] [jline "0.9.94"] [robert/hooke "1.1.0"] [org.apache.maven/maven-ant-tasks "2.0.10" :exclusions [ant]]] :disable-implicit-clean true :eval-in-leiningen true)
- cdavid 16y agoI am not familiar with leiningen or clojure, but it looks like you are just adding a list of requirements + version, which is exactly what you get with pip + requirements.txt file ?
- dpritchett 16y agoI believe that's what's going on, yes. Leiningen runs on top of Maven and so it's downloading the jars you need and storing them in ~/.m2/ where they will be linked in at compile time. A "lein uberjar" will roll your whole program up into one .jar file, ready for deployment.
- deleted 16y ago[deleted]
- deleted 16y ago[deleted]