官术网_书友最值得收藏!

Installing Leiningen

We are used to having certain tools to help us build our code, such as Ant, Maven, and Gradle.

In the Clojure ecosystem, the de facto standard for dependency and build management is Leiningen (affectionately named after the short story "Leiningen versus the Ants", which I recommend reading at http://en.wikipedia.org/wiki/Leiningen_Versus_the_Ants); Leiningen strives to be a familiar to Java developers, it gets the best ideas from Maven, like: convention over configuration. It also gets ideas from Ant like custom scripting and plugins.

Installing it is very simple, let's check how to do it on Mac OS X (installing on Linux should be the same) using bash as your default shell.

You should also have Java 7 or 8 already installed and configured in your path.

You can check the detailed instructions on the Leiningen project page http://leiningen.org/. If you want to get a Leiningen installation up and running, this is what you would have to do:

curl -O https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
# The next step just set up the lein script in your path, you can do it any way you wish
mv lein ~/bin
echo "export PATH=$PATH:~/bin/">> ~/.bashrc
source ~/.bashrc
# Everything should be running now, let's test it
lein help

The first time you run the lein command, it downloads everything needed from the internet. This makes it very easy to distribute your code, you can even include the lein script with your own projects and make it easier for other developers to get up and running, the only real requirement is the JDK.

主站蜘蛛池模板: 丰都县| 浙江省| 辽宁省| 巴林右旗| 左云县| 汨罗市| 白朗县| 澳门| 杭锦旗| 澄城县| 长岛县| 公安县| 孝昌县| 柳江县| 永济市| 紫金县| 桓仁| 广汉市| 民乐县| 千阳县| 鄯善县| 资溪县| 东安县| 安国市| 石嘴山市| 闽侯县| 溧水县| 井陉县| 绥芬河市| 灵武市| 太仆寺旗| 东丰县| 康马县| 施秉县| 曲沃县| 井陉县| 寿阳县| 防城港市| 海阳市| 泌阳县| 华亭县|