Hello, I'm working on a library that works with both Clojure and 
ClojureScript.

Here's the project.clj for the library:

(defproject libtest "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME";
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.4.0"]]
  :plugins [[lein-cljsbuild "0.3.0"]]
  :cljsbuild
    {:crossovers [libtest],
     :crossover-jar true
     :jar true
    :builds
    [{:source-paths ["src/libtest"], :crossover-path "src/libtest"}]})

And I'm including it as a dependency in another project. To get it to work 
from the ClojureScript side of my project, I had to add the exact namespace 
as a crossover under the cljsbuild key of my project.clj:

:cljsbuild {
    :builds [{
...
        :crossovers [libtest.core]
...

My question is, is this necessary? If it's on the classpath, why must I 
specifically tell it what namespaces I'm going to use? This can't scale 
well if I need to use dozens of namespaces, some of which will reference 
other namespaces and etc.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to