Fork me on GitHub
#boot
<
2017-03-25
>
lsenta04:03:05

What's the correct way to generate a local jar for a clj/cljs project?

lsenta04:03:18

boot pom jar install produces a jar file without any cljc/clj/cljs for me :thinking_face:

alandipert04:03:24

@lsenta are you adding stuff to resource-paths?

alandipert04:03:27

i.e. (set-env! :resource-paths #{"src"})

lsenta04:03:40

@alandipert I use

(set-env! :resource-paths #{"resources"}
          :source-paths   #{"src/cljc" "src/clj" "src/cljs"
                            "test/clj" "test/cljs"}
     ...)

lsenta04:03:52

I should put my srcs into resources too?

lsenta04:03:49

It works, thanks you Sir! I'd assume the source-paths would be used by default too, am I missing something?

dominicm09:03:14

lsenta: source paths are for projects (applications) mostly, when regarding clojure code anyway.

dominicm09:03:40

Source paths are for things that need compiling, e.g. Sass or clj you need to aot

dominicm09:03:55

Libraries don't need to aot their clj, or compile their cljs

lsenta09:03:46

Thanks for the precision dominicm

mobileink18:03:09

think of sources as marked with [+IN, -OUT], resources as [+IN, +OUT], assets as [-IN, +OUT]. the target task only writes out things marked +OUT.