leiningen

Franklin 2022-01-31T07:29:36.144549Z

hello 👋 is it possible to require other namespaces into the project.clj file?

vemv 2022-01-31T08:29:23.247119Z

it is, but generally (that is, without extreme hacking) only clojure.* ones, e.g. clojure.string, set, test, etc Don't use a ns form, instead (require [clojure.string :as str]) before the defproject form

vemv 2022-01-31T08:35:24.525289Z

Note this comment https://github.com/technomancy/leiningen/blob/b257a5ac02af51e1b89332c667e57c9e01f98d7e/sample.project.clj#L12 , inside the defproject you can use clojure code if it's prefixed with ~

Franklin 2022-01-31T09:04:07.241449Z

thanks

Franklin 2022-01-31T07:31:44.647449Z

I'm wondering because it doesn't use the ns macro