This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-01
Channels
- # beginners (134)
- # boot (4)
- # cider (11)
- # cljs-dev (3)
- # cljsrn (10)
- # clojure (85)
- # clojure-dev (10)
- # clojure-spec (17)
- # clojure-uk (14)
- # clojurescript (19)
- # copenhagen-clojurians (1)
- # data-science (15)
- # datascript (3)
- # datomic (3)
- # fulcro (1)
- # graphql (3)
- # heroku (1)
- # hoplon (1)
- # leiningen (2)
- # nrepl (11)
- # om-next (1)
- # onyx (35)
- # reitit (3)
- # shadow-cljs (43)
- # spacemacs (2)
- # specter (1)
- # test-check (10)
- # tools-deps (1)
- # vim (1)
Is it possible to include/depend on an existing jar with boot? I can make it work with lein by doing :resource-paths ["…/whatever.jar"]
in my project.
(I tried doing the same with (set-env! :resource-paths ["…/whatever.jar"] …)
but I get this weird exception trying to run my application (that I don’t get otherwise):
java.nio.file.DirectoryNotEmptyException: /Users/jonathan/.boot/cache/tmp/Users/jonathan/<snip>/8hf/-of1h48
@jonathanj I would use boot-local-repo
(or lein-local-repo
) to install the JAR locally into your Maven cache, instead of trying to use it as a free-floating JAR. Even better if you have an S3 Wagon / Nexus / Maven / whatever repo you can upload it to -- and then just depend on it normally.
@jonathanj I've got some docs on how to do that here: https://docs.deps.co/repository-management/how-to-deploy-a-provided-jar. Also, if you're looking for a hosted Maven repository then you can find one there too 🙂