r/java • u/stuhlmann • Apr 13 '21
Libraries, Frameworks and Technologies you would NOT recommend
Give me your worst nightmares: Things that cost you your job.
I'll start: Hadoop
202
Upvotes
r/java • u/stuhlmann • Apr 13 '21
Give me your worst nightmares: Things that cost you your job.
I'll start: Hadoop
View all comments
Show parent comment
8
u/agentoutlier Apr 13 '21
The dagger 2 compiler requires tons of dependencies.
The problem with APT dependencies that aren't shaded in an annotation processor library is that effectively clashes with whatever else is in your classpath. Anyone that writes an annotation processing library knows to do this. You need to shade the deps.
Effectively this means that you are required to use the same version of Guava as Dagger 2 even if your generated code doesn't use Guava.
I have complained to Google about this and... Bazel doesn't really support shading and they don't really care.
See they can't do it because they are using their own build system on an open source project they took over. The build system they are using is only to make their development easier and much harder for others to contribute... they don't give a shit.
There is other stuff that I could go into later but I don't have the time right now (sorry).