How to implement maven-like dependency shadowing using sbt-proguard?

The Maven shade plugin can refactor the jar structure and rewrite the affected bytecode of the class files. What plugin in SBT can accomplish this goal? I just found a plugin called sbt-proguard and don't know how to do it.

+3


source to share


1 answer


Try the sbt-assembly plugin. From the github page:

sbt-assembly can display classes from your projects or from a dependency library. Powered by Jar Jar References, Bytecode Conversion (via ASM) is used to change references to renamed classes.



The documentation further describes how to define the shading rules.

0


source







All Articles