Any Java project that uses my jar, will almost certainly have an additional dependency on another jar, which my jar also contains as a dependancy.
Problem is, that other jar has multiple versions.
How can I avoid any issues that might arise, in the likely case that your project's version of the 2nd jar is different from my jar's version of the 2nd jar?
I don't want my users to have the extra hassle of doing some fancy classloading trick in order to add my jar.
Should I just make a bunch of different versions of my jar, for every possible version of that common dependency? And then you just choose the version of my jar that uses the same whatever version of the 2nd jar you happen to have already?
Is there a smarter way to handle this, and make it easier for people to use my jar without conflicts?