tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
thom 2021-06-20T18:25:31.271600Z

Is there an equivalent of Leiningen's :global-vars that can be used in a deps.edn file? Is there some more tasteful way to ensure things like *warn-on-reflection* or *unchecked-math* are set everywhere?

practicalli-john 2021-06-21T11:43:41.274Z

If these settings are for development only, then I would add this to a user namespace and include the file that contains that namespace on the classpath via an alias. This approach works for either Clojure CLI tools or Leiningen https://practical.li/clojure/clojure-tools/projects/configure-repl-startup.html

borkdude 2021-06-20T18:27:18.272800Z

@thom704 there isn't but recently Alex said that "there should" in the #graalvm channel. Currently you can do this like:

clojure -M -e '(set! *warn-on-reflection* true)' -e "(require 'foo.main)" -e "(foo.main/-main)" or so