I know I'm joining the party a bit late here, and I may be
misunderstanding, but...
Can I add my vote _against_ publishing only the uber jar? I'm
generally against uber jars unless you really have to, because it
makes it harder to see what libraries you're using, and it increases
the size of your distribution. If you can only publish one jar, I'd
prefer the standard jar, those few people in the world who come up
against this problem could shade their own jar if really necessary.
Firstly, our application has a high number of libraries, if every
library included all its libs shaded into its own jar then the size of
our distribution would explode. Secondly, I suspect Kryo is used by a
number of commercial products. Products come with warranties. Being
able to warrant a piece of software means knowing what code is in it
(shading makes it harder to know). Equally, if a bug is found in ASM3
in a customer's specific environment, then steps can be taken to
ensure all versions of asm in the product are upgraded (sure, in some
cases this means forking libraries that depend on ASM, but that's
life). If people start bundling ASM into their own jars, this becomes
more difficult to spot, and even more difficult to fix.
These are just my thoughts, I'm not trying to tell anyone what to do.
Btw I'd prefer if both jars are available if it helps people - I've
been trying to work out how to publish both jars with the correct
dependencies using some magic in profile activation based on
classifier, but my knowledge of maven hits a brick wall fairly
quickly.
Presumably it would be possible to publish the shaded jar as a
_separate_ artifact, which can depend on the main kryo artifact, do
the shading, and exclude asm - not quite as neat but may work?
-badger
> >
http://maven.apache.org/plugins/maven-shade-plugin/examples/attached-...
> > > <
> >
http://maven.apache.org/plugins/maven-shade-plugin/examples/attached-...>
>
> > > Cheers,
> > > Martin
>
> > > Am 06.06.2012 14:55 schrieb "Dirk" <
h3rma...@googlemail.com
> > > <mailto:
h3rma...@googlemail.com>>:
> > inoio gmbh -
http://inoio.de