would it be possible to get a pre-built jar to run like this? >java -jar clojure.jar
There are instructions on how to build one in the Clojure github readme
Because this pulls in other deps, it’s not an artifact that we officially build and publish. We think it makes more sense to build apps on top of published (more fine-grained) artifacts
Cloning the repo and building will pull more dependencies than the Powershell installation?
simultaneously, yes and no. these are very different things.
if you clone the Clojure github repo and build a self-contained Clojure jar with Maven, then it will retrieve two additional jars and combine them all together into a clojure.jar that you can run with java -jar clojure.jar
the powershell installation is not Clojure. it is a tool (clj) with the ability to download dependencies, assemble classpaths, and run Clojure programs. That tool is also written in Clojure and contains inside of it a combined "uber-jar" that includes Clojure, the deps mentioned above, and dozens of other external libraries to do things like access Maven, access git repos, etc.
clj uses that code to run, but does not proactively download Clojure itself or any other dependencies until asked
Clojure, as with any language, has an ecosystem of libraries around it (actually, two - Java and Clojure). While you can build clojure "from scratch" and use it as a repl, or for learning the language, you will eventually need and want to tap into that ecosystem, and that's what the clj tool is designed to enable
thanks, I looked at the PowerShell module and it should be possible to covert to a standalone script, which I would prefer.