Fork me on GitHub
#leiningen
<
2018-01-24
>
fabrao02:01:49

Hello all, is there any way to uberjar only the "all included" jar and forget the other?

noisesmith18:01:43

the other is an input that the uberjar needs - you can create a task or step that deletes the original though

noisesmith18:01:56

or rewrite the uberjar task so it doesn’t need that jar to be created first?

gklijs06:01:23

Not always through. Especially when using java libraries, there might be some logging or other dependencies coming along as dependencies, which you don't need, and can be excluded. And when at runtime you have other dependencies on your classpath, you also don't need them in the uberjar. But if you want to use it to run in docker you want all dependencies.

noisesmith17:01:58

the all-included uberjar always uses the entirety of the regular jar that doesn’t include deps