First thanks for making neil! It's quite nice for new clojure users like myself. Clojure already has a lot that's different to learn, so it's nice to just focus on the language and not have to also learn deps.edn and tools.build until needed for more complex projects and just have easy commands for basic tasks. Here's my experience building my first uberjar, maybe it's helpful for improving the documentation so other new users have an easier time, or maybe even neil could configure these things automatically:
I follow readme that says neil add build :deps-deploy true and then clojure -T:build uber
Get some confusing java errors when trying to run it, google around and find your blog which explains I need to add (:gen-class) to the namespace with main and add :main 'my-namespace to the b/uber map in build.clj
Everything works :)
Maybe (:gen-class) could be added in the default new project template? Maybe it could search what namespace has (:gen-class) and (defn -main... and automatically set the :main key when it generates build.clj with neil add build :deps-deploy true? Maybe just link your blog post from the neil readme, cause it has good information people will miss if they just come to the github page
First thanks for making neil! It's quite nice for new clojure users like myself. Clojure already has a lot that's different to learn, so it's nice to just focus on the language and not have to also learn deps.edn and tools.build until needed for more complex projects and just have easy commands for basic tasks. Here's my experience building my first uberjar, maybe it's helpful for improving the documentation so other new users have an easier time, or maybe even neil could configure these things automatically:
neil add build :deps-deploy true
and thenclojure -T:build uber
(:gen-class)
to the namespace with main and add:main 'my-namespace
to the b/uber map in build.cljMaybe
(:gen-class)
could be added in the default new project template? Maybe it could search what namespace has(:gen-class)
and(defn -main...
and automatically set the:main
key when it generates build.clj withneil add build :deps-deploy true
? Maybe just link your blog post from the neil readme, cause it has good information people will miss if they just come to the github page