Fork me on GitHub
#leiningen
<
2018-06-29
>
mhcat19:06:59

AIUI leiningen doesn't use the :dev profile for building uberjars, however I see the dev profile dependencies being included in the uberjar build. Am I doing something wrong?

mhcat19:06:13

I also tried lein with-profile -dev uberjar to no avail

mhcat19:06:32

actually, correction - I see them being retrieved, there's no indication that they're included in the uberjar, maybe it's a pre-uberjar step

mikerod20:06:30

@j0ni it shouldn’t be included

mikerod20:06:37

not sure what you are seeing though

mhcat20:06:56

I was seeing the download of jars during a docker build which executed lein uberjar

mhcat20:06:26

I looked inside the jar and I don't see any of those classes, so I'm guessing they get needlessly downloaded, and then ignored by the uberjar task

mhcat20:06:31

that's a guess obv

mikerod20:06:12

I’m not sure why you’d get any :dev profile-based activity from lein uberjar

mikerod20:06:56

you could have plugins or something else interacting though

mhcat20:06:13

the only plugins I have are in the dev profile 😞

mhcat20:06:34

and this is in a docker image build, so I don't think there's any user profile based stuff even available

mikerod20:06:35

what you see is :dev dependencies being fetched ?

mikerod21:06:06

weird. maybe normal. I don’t know why it does that though

mikerod21:06:10

shouldn’t be included in the jar at least

mhcat22:06:30

yeah I think my correction above was on the nose - I don't see any evidence of them in the uberjar