jeka icon indicating copy to clipboard operation
jeka copied to clipboard

Projects can generate shaded Uber-Jars.

Open djeang opened this issue 4 years ago • 0 comments

For now, Jeka only can generate unshaded Uber-jar (Fat-Jar) Many projects needs to generate shaded Uber jar (it is the recommanded way of publishing Jeka external plugins).

As it is seems to challenging to implement from scratch without dependencies, one approach would consist in

  • clone https://github.com/apache/maven-shade-plugin
  • remove all Maven stuff to get a core shade library
  • pack it and publish it as a shaded uber jar (it will still hold holds dependencies) using Maven
  • Integrate this library in Jeka, as it is done for Ivy, bouncycastle and JUnit5 platform

djeang avatar Nov 14 '21 08:11 djeang