I have a java project where I pull in two jars A and B, using implementation under dependencies in my build.gradle file. Both A and B have unique dependencies that they pull in as jars, X and Y respectively. Unfortunately, both X and Y have the same class paths. The class paths don’t have any versioning tied in, so how can I tell gradle to build A with X and B with Y?
I’ve been reading up on documentation, specifically Working with Dependencies, and some options come close but none of them get me to a solution. I’m using the latest gradle 7.2