SHADE-JAR(1)
π shade-jar β bestie's guide to renaming Java namespaces β¨
okay so real talk, this is shade-jar, from the Java Packages Tools girlies, and it's literally the glow-up station for your JAR files. π
πΈ NAME πΈ
shade-jar β renames the Java namespace inside a JAR file. that's it, that's the whole vibe. π
π¦ SYNOPSIS π¦
bin/shade-jar orig-namespace shaded-namespace in-jar out-jar
four things, in that order, no cap. β¨
π DESCRIPTION π
okay so shade-jar is the utility for changing JAR file namespaces. basically it goes through and replaces every single occurrence of the given pattern with the given replacement β like a find-and-replace but make it fashion. π
the replacement happens on class file names and inside the class files themselves. both. she does both. π₯
and if you've heard people call this "shading" β yes bestie, that's exactly what this is. you already knew. iykyk. π§
β¨ EXAMPLES β¨
shade-jar org.apache.log4j com.example.shaded.log4j
/usr/share/java/log4j.jar lib/shaded-log4j.jar
so what this does: it replaces all occurrences of org.apache.log4j in the JAR file /usr/share/java/log4j.jar with com.example.shaded.log4j, and stores the resulting JAR in lib/shaded-log4j.jar. iconic behaviour, honestly. π
π BUGS π
ngl, currently only class files get shaded. resources are not renamed. π and it's worse β neither the contents of resource files nor manifests are processed. so like, know that going in. π
π«Ά AUTHOR π«Ά
Written by Mikolaj Izdebski. thank you king, we appreciate you. π
π REPORTING BUGS π
found a bug? don't suffer in silence bestie, report it through the Java Packages Tools issue tracker at Github:
https://github.com/fedora-java/javapackages/issues
they want to hear from you fr fr. π¦
JAVAPACKAGES Β· version dated 2026-05-28 Β· and that's the whole page, mwah π stay shady β¨π
π¦ where this page comes from
- opensuse-leap 16.0: javapackages-tools 6.5.1-160000.2.1 Β· BSD-3-Clause
- opensuse-leap 16.0: javapackages-tools 6.5.1-160000.2.1 Β· BSD-3-Clause
- opensuse-leap 16.0: javapackages-tools 6.5.1-160000.2.1 Β· BSD-3-Clause
- opensuse-leap 16.0: javapackages-tools 6.5.1-160000.2.1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms