I have two questions regarding dependencies in Clojure project.
Is there something like
:dev-dependenciesor:test-dependenciesso that I don't have to download them all onlein run? So until I run my tests I don't need to have these extra libraries.Can I load dependencies in one file and require this one file in an another file? I'd like to have something similar to:
; dependencies.clj ; ... (:require [clj-http.client :as client] [clj-http.fake :refer :all] [clojure.test :refer :all])) ; some-file.clj ; ... (:require [dependencies :refer :all[)
1) Yes, Leiningen offers profiles for just these purposes
2) No, referals from one namespace are not "inherited" between namespaces. You can't express "I want to refer to everything in this namespace, that some other namespace refers"