smallrye-mutiny icon indicating copy to clipboard operation
smallrye-mutiny copied to clipboard

feat: produce a no-dependencies shaded Mutiny jar

Open jponge opened this issue 1 year ago • 3 comments

Ref: #1577

jponge avatar May 29 '24 16:05 jponge

This shades and relocates JCTools and Smallrye Common Annotations. The JCTools .atomic. queue variants are removed as well as counters and maps.

On the sizes front the benefit isn't spectacular:

864K	implementation/target/mutiny-999-SNAPSHOT.jar
8.0K	/Users/jponge/.m2/repository/io/smallrye/common/smallrye-common-annotation/2.4.0/smallrye-common-annotation-2.4.0.jar
408K	/Users/jponge/.m2/repository/org/jctools/jctools-core/4.0.3/jctools-core-4.0.3.jar

1.1M	no-deps/target/mutiny-no-deps-999-SNAPSHOT.jar

jponge avatar May 29 '24 16:05 jponge

I did a more agressive pruning:

972K	no-deps/target/mutiny-no-deps-999-SNAPSHOT.jar

The best we can do.

/cc @franz1981

jponge avatar May 30 '24 19:05 jponge

So basically, we are taking 100K... Not great. However, the result is still less than the sum of the two jars.

cescoffier avatar Jun 03 '24 06:06 cescoffier

I'm merging this, but this won't be much advertised. Consuming the main mutiny artefact should be the norm, the shaded variant is to be used only if you know what you are doing.

jponge avatar Sep 23 '24 17:09 jponge