Permalink
Browse files

make the deprecation of crossovers "official"

  • Loading branch information...
1 parent 1458623 commit 8faf43faf85fbed92367f3014696c24c2ec5e7d9 @cemerick cemerick committed Jan 30, 2014
Showing with 10 additions and 17 deletions.
  1. +5 −17 README.md
  2. +4 −0 doc/CROSSOVERS.md
  3. +1 −0 plugin/src/leiningen/cljsbuild.clj
View
@@ -9,7 +9,11 @@ Beyond basic compiler support, lein-cljsbuild can optionally help with a few oth
* [Launching REPLs for interactive development] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.2-SNAPSHOT/doc/REPL.md)
* [Launching ClojureScript tests] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.2-SNAPSHOT/doc/TESTING.md)
-* [Sharing code between Clojure and ClojureScript] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.2-SNAPSHOT/doc/CROSSOVERS.md)
+* Sharing code between Clojure and ClojureScript: use
+ [cljx](http://github.com/lynaghk/cljx) to target both Clojure and
+ ClojureScript from the same codebase. ([cljsbuild
+ crossovers](https://github.com/emezeske/lein-cljsbuild/blob/1.0.2-SNAPSHOT/doc/CROSSOVERS.md)
+ are _deprecated_, and will be removed in v2.x [coming later in 2014].)
The latest version of lein-cljsbuild is `1.0.2-SNAPSHOT`.
[See the release notes here.](https://github.com/emezeske/lein-cljsbuild/blob/1.0.2-SNAPSHOT/doc/RELEASE-NOTES.md)
@@ -126,15 +130,6 @@ the ClojureScript as well if enabled.
:jar true
```
-If you are using the
-[crossovers] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.2-SNAPSHOT/doc/CROSSOVERS.md)
-feature, and want the `:crossover-path` included in the JAR file, add this entry to your
-top-level `:cljsbuild` configuration:
-
-```clj
-:crossover-jar true
-```
-
## Multiple Build Configurations
If the `:builds` sequence contains more than one map lein-cljsbuild
@@ -210,13 +205,6 @@ Lein-cljsbuild has built-in support for running external ClojureScript test proc
[testing documentation] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.2-SNAPSHOT/doc/TESTING.md)
for more details.
-## Sharing Code Between Clojure and ClojureScript
-
-Sharing code with lein-cljsbuild is accomplished via the configuration
-of "crossovers". See the
-[crossovers documentation] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.2-SNAPSHOT/doc/CROSSOVERS.md)
-for more details.
-
## ClojureScript Version
After configuring lein-cljsbuild, `lein deps` will fetch a known-good version of the ClojureScript compiler.
View
@@ -1,5 +1,9 @@
# Sharing Code Between Clojure and ClojureScript
+**Note: cljsbuild crossovers are _deprecated_, and will be removed in v2.x
+(coming later in 2014). Please use [cljx](http://github.com/lynaghk/cljx) to
+target both Clojure and ClojureScript from the same codebase.**
+
Sharing code with lein-cljsbuild is accomplished via the configuration
of "crossovers". A crossover specifies a Clojure namespace, the content
of which should be copied into your ClojureScript project. This can be any
@@ -44,6 +44,7 @@
; If crossover-path does not exist before eval-in-project is called,
; the files it contains won't be classloadable, for some reason.
(when (not-empty crossovers)
+ (println "\033[31mWARNING: lein-cljsbuild crossovers are deprecated, and will be removed in future versions. See https://github.com/emezeske/lein-cljsbuild/blob/master/doc/CROSSOVERS.md for details.\033[0m")
(fs/mkdirs crossover-path))
(let [filtered-builds (if (empty? build-ids)
builds

0 comments on commit 8faf43f

Please sign in to comment.