I’m playing around with the new model-based Java plugin, and for one project I have a dependency on a Maven artifact with a classifier. When I attempt to declare the dependency, I get ‘com.example:test:1.0:desktop’ is not a valid module dependency notation. I’ve included an example build script below; I wouldn’t expect it to work, as com.example:test:1.0:desktop doesn’t exist, but I would expect it to fail because it can’t find the dependency, not for invalid dependency notation. Is this simply not currently a supported feature of the new Java plugin?
plugins {
id 'jvm-component'
id 'java-lang'
}
model {
components {
main(JvmLibrarySpec) {
dependencies {
module 'com.example:test:1.0:desktop'
}
}
}
}