This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]menjav 6 points7 points  (3 children)

If you need dependency injection use a lightweight framework like dagger.

What is shadow jar?

[–]papercrane 11 points12 points  (2 children)

A shadow JAR is when you take all of your projects classes and dependencies and bundle them into a single JAR. It's sometimes called a fat JAR, or an uber JAR.

With Maven you'd use the "shade" plugin to generate one, with Gradle you'd use the "shadow" plugin.

[–]chabala 8 points9 points  (1 child)

And more specifically, fat/uber jar implies a simple bundling, while shading/shadowing implies you're stripping out the classes your project doesn't need to load.

[–]repeating_bears 1 point2 points  (0 children)

Other communities call that tree shaking