Maven's shade plugin can reorganize the struct of a jar and rewrite the affected bytecode of class files. What plugin in SBT can realize this purpose? I only found a plugin called sbt-proguard and not sure how to do it.
Asked
Active
Viewed 630 times
1 Answers
0
Try the sbt-assembly plugin. From the github page:
sbt-assembly can shade classes from your projects or from the library dependencies. Backed by Jar Jar Links, bytecode transformation (via ASM) is used to change references to the renamed classes.
The documentation further describes how to define shading rules.

Mansoor Siddiqui
- 20,853
- 10
- 48
- 67