Hi everyone,
A few of the Clojure projects at our company use embedded Clojure in project.clj in order to load external resources (version numbers, large AOT information).
This works well in lein, but Cursive appears to use its own simple parser for project.clj that does not seem to support embedding Clojure.
Things like the below snippets:
(def project-dir
"If this file is loaded from another location, we cannot rely on the workdir being the project dir."
(catch Exception _
"0.1.1-SNAPSHOT"))
and this:
:profiles {:uberjar
{:main ^:skip-aot circle.uberjar-init
:aot ~(clojure.edn/read-string (slurp (clojure.java.io/file project-dir "aot.edn")))}}
Is there any way the parser can be fixed to behave the same as lein? (e.g. is the lein one available as a library)
Thanks, Pete