GradleUp / shadow

Gradle plugin to create fat/uber JARs, apply file transforms, and relocate packages for applications and libraries. Gradle version of Maven's Shade plugin.
https://www.gradleup.com/shadow/
Apache License 2.0
3.75k stars 396 forks source link

Does exist shadow as a library? #626

Open jabrena opened 3 years ago

jabrena commented 3 years ago

Hi,

in the project jbang, we are trying to create a fat jar. In Gradle, it is common to use this plugin, but does exist a java library to do exactly the same that this plugin does?

Issue reference: https://github.com/jbangdev/jbang/issues/619

Many thanks in advance

Merry Christmas

Juan Antonio

johnrengelman commented 3 years ago

It’s pretty coupled to the Gradle API today, but I don’t see why we couldn’t break that up in the future and make it usable as a straight java library. I’ll be honest, I’m not doing much maintenance on this beyond Gradle version compatibility, so if someone wants to take a stab at doing this refactoring, I’m happy to look at the Pull Request. The functional tests should capture the necessary behavior enough to ensure we don’t break Gradle integration.