I want to create a Java library that depends on a JAR but I want the JAR to be loaded by projects using my library/JAR rather than provided through as a dependency in my library.
The reason I need to do this is that the JAR in question is an Adobe Analytics JAR for Android. These JARs are specific to the project in question but the methods, packages and classes are always named the same in each JAR.
In the C/C++ world you can have separate headers one for the internal build and a public header file for users of the library. Is there a way that this can be done in Java? I usually use Gradle but solutions using other tools would eb very welcome.