Fork me on GitHub
#leiningen
<
2018-09-12
>
chrisetheridge08:09:03

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

chrisetheridge08:09:27

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

mikerod12:09:48

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

mikerod12:09:21

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

mikerod12:09:54

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.