Fork me on GitHub
#leiningen
<
2017-08-01
>
pseud11:08:33

Question. I may want some libraries to be available during testing (in my case, citius, a performance testing library) - so I stick them into :dev-dependencies in my project.clj. So far so good, but what I'm fuzzy on is now I e.g. 1. ensure these dependencies are not included in my final artifact (some sort of jar) 2. ensure these dependencies are available if I boot a repl session

bfabry18:08:43

@pseud I didn't know there was such a thing as :dev-dependencies?

bfabry18:08:48

there's :dev {:dependencies}

bfabry18:08:04

afaik anything specified in there should be available during repl task and should not be included in any jar

jstokes21:08:18

does anyone know if it’s possible to exclude a single file from a dependency? i have a situation where multiple plugin.xml files end up on my classpath, the one that gets placed first isn’t correct

jstokes21:08:20

:uberjar-exclusions seems like the right thing, but as far as i can tell you can only operate on the file path, not the source path

jstokes21:08:32

i.e. i’d want to exclude all plugin.xml files except for the one i specify

jstokes21:08:19

:exclusions [foo.bar/baz :extension "xml"] also seemed promising, but doesn’t do what I think it might