As I am using OSGi, I wanted to make Gradle allow several different versions of the same dependency in the classpath. I’ve been copying the dependencies using this code:
project.copy {
from project.configurations.osgiRuntime
into bundlesDir }
But this will use Gradle’s resolution mechanism to choose only one version of each group:artifactName combination, which is not what I want!
How can I get around Gradle’s resolution so that I can copy ALL dependencies, without resolving version conflicts?