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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -