Permalink
Browse files

chapter 8 example projects tweaked

  • Loading branch information...
1 parent 4166b0b commit c28bd9cfe2e0ef239c5b7533e6d1a89822c4f208 @cemerick cemerick committed Apr 3, 2012
@@ -1,10 +1,20 @@
(defproject com.clojurebook/lein-mixed-source "1.0.0"
+ :description "An example of building a mixed-source project in
+Leiningen, with the additional requirement that some Java sources depend
+upon a type defined in the Clojure sources. From chapter 8 of 'Clojure
+Programming' by Emerick, Carper, and Grand."
+ :url "http://github.com/clojurebook/ClojureProgramming"
:dependencies [[org.clojure/clojure "1.3.0"]]
:aot :all)
-(require '(leiningen compile javac))
+(require '(leiningen compile javac)
+ 'robert.hooke)
-(add-hook #'leiningen.compile/compile
+(robert.hooke/add-hook #'leiningen.compile/compile
(fn [compile project & args]
(apply compile project args)
- (leiningen.javac/javac (assoc project :java-source-path "src"))))
+ (leiningen.javac/javac (assoc project
+ ;; Leiningen 1 uses :java-source-path
+ :java-source-path "srcj"
+ ;; Lein 2 uses :java-source-paths
+ :java-source-paths ["srcj"]))))
@@ -1,2 +1,4 @@
(defproject com.clojurebook/sample-lein-project "1.0.0"
+ :description "This is the simplest possible Leiningen project."
+ :url "http://github.com/clojurebook/ClojureProgramming"
:dependencies [[org.clojure/clojure "1.3.0"]])
@@ -1,6 +0,0 @@
-(ns simple.test.core
- (:use [simple.core] :reload-all)
- (:use [clojure.test]))
-
-(deftest replace-me ;; FIXME: write
- (is false "No tests have been written."))
@@ -0,0 +1 @@
+(ns simple.core)

0 comments on commit c28bd9c

Please sign in to comment.