Build failure when 4.1.0 of net.java.dev.jna:jna is selected in place of 3.3.0 due to change in artifacts with classifiers

Here’s a workaround:

dependencies {
    compile ('org.mariadb.jdbc:mariadb-java-client:1.1.8') {
        exclude group: 'net.java.dev.jna'
    }
    compile 'net.java.dev.jna:jna:4.1.0'
    compile 'net.java.dev.jna:jna-platform:4.1.0'
}

The issue is that the mariadb-java-client POM has two dependencies. One is for net.java.dev.jna:jna with the classifier and one is for without. And since 4.0, net.java.dev.jna:jna publishes the ‘platform’ artifact under a different name (net.java.dev.jna:jna-platform).

I don’t believe we have a way of substituting a dependency with a classifier for a completely different dependency yet.