(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]])
|