I am working on a Clojure library. Inside the library is an example app that shows how to use the library. In the example app, which is in a subdirectory, what is the cleanest way to depend on the parent library? I want this to be fast; I want the dependency always be in step with the current library code. That means avoiding deploying to Clojars (or elsewhere).
Asked
Active
Viewed 162 times
2 Answers
1
You can add "../src" to the :source-paths in project.clj
Since you always want the current version of the parent's code, and it will always be in the same relative place, it's less a "dependency" to be resolved and more a classpath to be used to find code.

noisesmith
- 20,076
- 2
- 41
- 49
-
There's also `.lein-classpath` if you don't want that info in the project.clj – Jeremy Jul 21 '13 at 03:12