leiningen - Clojure: How to set :repositories in project.clj -
im working on compiling jars local repository in leiningen. works in project.clj:
:repositories {"local" ~(str (.touri (java.io.file. "local_mvn_repo")))}
but fails:
:repositories [["local" (str (.touri (java.io.file. "local_mvn_repo")))]] $ lein deps java.lang.unsupportedoperationexception: nth not supported on type: symbol
even though latter looks in compliance the official example. question this:
what ~ above, need it, , why can't use vector form?
the ~ unquoting function in case, tells lieningen run form after , use value produced running instead of trying use directly.
the first example if format leiningen version 1.x while second newer form , failing because missing ~
, { }
:repositories [["local" {:url ~(str (.touri (java.io.file. "local_mvn_repo")))}]]
ps: i'm not sure if map form required , i'm assuming using lein2
Comments
Post a Comment