Hacker News new | ask | show | jobs
by bmillare 2312 days ago
You can if you build the clojure jar yourself. Just follow the ant part of the clojure README to generate your own jar. Then you have a super portable clojure jar again. https://github.com/clojure/clojure/
1 comments

This is cool, though for lowering the barrier of entry downloading a single jar is great. If ppl is first coming to Clojure w/o too much knowledge of java, having to install Ant first, clone a repo and build it manually could be a bit daunting.
My suggestion is mainly for people that want to "trim the fat" , have maximal control of things, or want to use this as basis for non-standard deployments. I just want to support the OP that you don't NEED to download all this tooling to get it to run on any computer. Once you have the jar, its very easy to put it on a friend's computer. You can even package up a JVM in there if you wanted too. While not up to date, I describe my motivations in dj.solo https://github.com/bmillare/dj.solo
On macOS: brew install clojure

Linux can use brew as well, or just download an installer shell script and run it.

Windows can use an (alpha) installer for Powershell or use Scoop via this bucket https://github.com/littleli/scoop-clojure

That's for the official CLI that works with deps.edn files for dependencies.

You can also download Leiningen -- a single shell script (macOS/Linux) or batch script (Windows).

If you use brew/scoop, I don't think you even need a JVM installed as they will do that automatically.