asbestosstar
Richard Schmidtmaintainer
Create a shadow jar with javassist
You can either use this as a command line or as a library. As a library it can do both jars and classes.
To use in command line you should run:
java -jar shadowassist.jar original.jar shadow.jar
to create a shadow/stub jar. A shadow jar is a jarfile which has all the same signatures/descriptors but the field initalisers and method bodies do not exist and thus most shadow jars cannot be run but can in many cases be used as APIs or Dev kits especially when the source material may have legal issues with redistribution in the country where you live (laws vary by country).
Similar to https://github.com/windup/class-body-stripper/ by JBoss. If you are using ASM over javassist ClassBodyStripper may be your thing.