This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-06
Channels
- # adventofcode (10)
- # ai (2)
- # aleph (2)
- # announcements (21)
- # beginners (25)
- # calva (7)
- # cider (19)
- # clj-kondo (28)
- # clj-on-windows (3)
- # cljdoc (6)
- # clojure (80)
- # clojure-dev (15)
- # clojure-europe (29)
- # clojure-italy (3)
- # clojure-nl (37)
- # clojure-uk (4)
- # clojurescript (3)
- # cloverage (1)
- # conjure (6)
- # core-async (2)
- # cursive (17)
- # datalevin (9)
- # datomic (7)
- # deps-new (23)
- # emacs (4)
- # figwheel-main (6)
- # fulcro (6)
- # honeysql (19)
- # improve-getting-started (4)
- # inf-clojure (2)
- # introduce-yourself (5)
- # jobs (1)
- # leiningen (6)
- # lsp (73)
- # malli (1)
- # nrepl (2)
- # off-topic (37)
- # polylith (9)
- # quil (2)
- # reitit (16)
- # releases (2)
- # remote-jobs (6)
- # rewrite-clj (38)
- # shadow-cljs (1)
- # tools-build (1)
This is in reference to https://clojurians.slack.com/archives/C053AK3F9/p1641434651007100.
I suggest updating the documentation at https://clojure.org/guides/tools_build with some example code of the actual main class you’d be packaging up. The path I followed was about the first half of this guide: https://clojure.org/guides/deps_and_cli, which got me a running program. Then I wanted to package my program as a jar, which lead me to this guide: https://clojure.org/guides/tools_build. :gen-class
is mentioned in the first guide, but it’s well past the point where you have a running program, and :gen-class
isn’t mentioned at all in the second page, so that’s how I got stuck (I don’t think the documentation in the first guide would have helped me regardless). I’ve been doing clojure off and on for a while, so I suppose I should have known to use :gen-class
, but I’ve never fully understood what it was for.
Hi @soxley , can you file an issue at https://github.com/clojure/clojure-site/issues ?