Last active
May 9, 2018 06:32
-
-
Save coltnz/3f38d7b08a3dff7d1bbda580d498188f to your computer and use it in GitHub Desktop.
Cursive, Boot and deps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(task-options! | |
pom {:project project | |
:version version} | |
jar {:main ... | |
:file ...)}) | |
(require '[boot-tools-deps.core :refer [deps load-deps]]) | |
(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 (deps) (pom) (uber) (jar) (target :dir dir)))) | |
... | |
;; Generate Leiningen project.clj for Cursive | |
(load-deps {:quick-merge true}) | |
(require 'boot.lein) | |
(boot.lein/generate) | |
;;Refresh Lein project in Cursive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment