- Clojure for Java Developers
- Eduardo Díaz
- 255字
- 2021-07-16 09:49:47
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.
- Expert C++
- 程序員面試筆試寶典(第3版)
- Java高并發核心編程(卷2):多線程、鎖、JMM、JUC、高并發設計模式
- Microsoft Dynamics 365 Extensions Cookbook
- Django:Web Development with Python
- 物聯網系統開發:從0到1構建IoT平臺(第2版)
- Bootstrap 4:Responsive Web Design
- Python極簡講義:一本書入門數據分析與機器學習
- PHP+MySQL+Dreamweaver動態網站開發從入門到精通(第3版)
- JSP程序設計實例教程(第2版)
- Python期貨量化交易實戰
- Python機器學習與量化投資
- 交互設計師成長手冊:從零開始學交互
- Test-Driven iOS Development with Swift
- Python自動化運維:技術與最佳實踐