I have several values ββrepeated in my project.clj , as shown below:
(defproject foo "0.1.0-SNAPSHOT" ... :dependencies [[bar "3.4.5"] [baz "3.4.5"] [bat "3.4.5"]] ...)
I would like to use some constant here, so when these libraries are updated to 3.5.0 , for example, I only need to change one place.
What is the best practice here? Best of all, I can come up with the following:
(def deps-version "3.4.5") (defproject foo "0.1.0-SNAPSHOT" ... :dependencies [[bar ~deps-version] [baz ~deps-version] [bat ~deps-version]] ...)
clojure leiningen
muhuk
source share