leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
grazfather 2021-04-28T16:30:43.093300Z

Sorry, I don’t understand what you mean. Do you mean in my invocation of the jar? What would that look like?

2021-04-28T16:31:42.093500Z

java -cp my.jar clojure.main -m my.ns

2021-04-28T16:32:12.093700Z

an advantage here is that you can also run a repl (leave out the -m arg) and any number of namespaces can have a runnable -main

2021-04-28T16:32:45.093900Z

(and you don't have a language feature that you use in prod but not during dev)

grazfather 2021-04-28T16:33:02.094100Z

cool, I will want that, since each of my profiles have their own main. At work right now, but will try that out later. Thank you!

grazfather 2021-04-28T16:33:48.094300Z

so is it that gen-class means turn a namespace into a java cjass, and i don’t need that if i get the clojure.main class to instead load/invoke the namespace?

1💯
2021-04-28T16:33:49.094500Z

this also works by having gen-class / -main in multiple namespaces, but I think just using clojure.main is simpler over all

2021-04-28T16:34:00.094700Z

that's exactly it, cheers

grazfather 2021-04-28T16:34:05.094900Z

🙏