Fork me on GitHub

i’m sure this has been answered many times, but looking at history and code isn’t getting me my answer - how do i read the project clj as if lein was reading it? to get the project arg map that’s passed to all sub lein tasks


hmm requiring that gives the error leiningen.core.classpath cannot be found


@biscuitpants leiningen.core.project has the read fn’s you want.


If the ns isn’t found it is likely because you don’t have leiningen on your classpath. That’s typically the case for a normal lein project


Lein launches 2 jvm processes. One for itself and one for your project. And your project one doesn’t have Lein on the classpath. That’s why in plugins projects you have to add eval-in-leiningen true in the defproject for plugins.