Skip to content

Instantly share code, notes, and snippets.

@coltnz
Last active May 9, 2018 06:32
Show Gist options
  • Save coltnz/3f38d7b08a3dff7d1bbda580d498188f to your computer and use it in GitHub Desktop.
Save coltnz/3f38d7b08a3dff7d1bbda580d498188f to your computer and use it in GitHub Desktop.
Cursive, Boot and deps
(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