git.fiddlerwoaroof.com
build.boot
489d68eb
 (def project 'my-infra)
 (def version "0.1.0-SNAPSHOT")
 
 (set-env! :resource-paths #{"resources" "src"}
           :source-paths   #{"test"}
           :dependencies   '[[org.clojure/clojure "RELEASE"]
                             [samestep/boot-refresh "0.1.0"]
                             [adzerk/boot-test "RELEASE" :scope "test"]
0d91895a
                             [amazonica "0.3.120"]
                             [funcool/cuerdas "2.0.5"]])
489d68eb
 
 (task-options!
  aot {:namespace   #{'my-infra.core}}
  pom {:project     project
       :version     version
       :description "FIXME: write description"
       :url         "http://example/FIXME"
       :scm         {:url "https://github.com/yourname/correlation-learning"}
       :license     {"Eclipse Public License"
                     "http://www.eclipse.org/legal/epl-v10.html"}}
  jar {:main        'my-infra.core
       :file        (str "my-infra-" version "-standalone.jar")})
 
 (require '[samestep.boot-refresh :refer [refresh]])
 (require '[adzerk.boot-test :refer [test]])
 
 (deftask build
   "Build the project locally as a JAR."
   [d dir PATH #{str} "the set of directories to write to (target)."]
   (let [dir (if (seq dir) dir #{"target"})]
     (comp (aot) (pom) (uber) (jar) (target :dir dir))))
 
 (deftask dev []
   (comp (watch :verbose true)
         #_(repl :server true)
         (refresh)
         (speak)
         (build)
         #_(test)))
 
 (deftask run
   "Run the project."
   [a args ARG [str] "the arguments for the application."]
   (require '[my-infra.core :as app])
   (apply (resolve 'app/-main) args))
 
 (require '[adzerk.boot-test :refer [test]])