This one is probably just user error.
I started out with some dependencies like this:
dependencies {
implementation('org.nd4j:nd4j-native:0.9.1') {
exclude group: 'org.projectlombok', module: 'lombok'
exclude group: 'com.google.code.findbugs', module: 'annotations'
exclude group: 'com.github.stephenc.findbugs', module: 'findbugs-annotations'
exclude group: 'junit', module: 'junit'
}
implementation('org.nd4j:nd4j-native:0.9.1:windows-x86_64') {
exclude group: 'org.projectlombok', module: 'lombok'
exclude group: 'com.google.code.findbugs', module: 'annotations'
exclude group: 'com.github.stephenc.findbugs', module: 'findbugs-annotations'
exclude group: 'junit', module: 'junit'
}
}
That works fine.
For reasons beyond the scope of this particular issue, I am trying to refactor this to:
dependencies {
implementation(module('org.nd4j:nd4j-native:0.9.1') {
exclude group: 'org.projectlombok', module: 'lombok'
exclude group: 'com.google.code.findbugs', module: 'annotations'
exclude group: 'com.github.stephenc.findbugs', module: 'findbugs-annotations'
exclude group: 'junit', module: 'junit'
})
implementation(module('org.nd4j:nd4j-native:0.9.1:windows-x86_64') {
exclude group: 'org.projectlombok', module: 'lombok'
exclude group: 'com.google.code.findbugs', module: 'annotations'
exclude group: 'com.github.stephenc.findbugs', module: 'findbugs-annotations'
exclude group: 'junit', module: 'junit'
})
}
But now I get an error:
> Could not resolve all dependencies for configuration ':integration-bom:testCompileClasspath'.
> org.nd4j:nd4j-native:0.9.1 has more than one client module definitions.
Which is bad grammar, but beyond that, it seems like I have stumbled upon a limitation where I’m not allowed to create two ClientModule
instances for the same (groupId, artifactId, version) triplet, even though the classifiers are different. I wasn’t able to dig up any documentation explaining why this is a limitation.
Is there a way to avoid this while still defining these two as client modules?