How to disable generation of default ivy.xml when resolving artifacts without existing ivy.xml from Nexus

Gradle seems to generate a default ivy.xml for JAR files published on Nexus which don’t have a ivy.xml file (only a JAR). We experienced this behavior with a wrong repository configuration (Maven layout with POMs on Nexus instead of Ivy layout with ivy.xml files).

Is it possible to disable this behavior? I would like Gradle to fail if no ivy.xml file can be found instead of a generating a default file with only the main artifact (and no dependencies).