Something like this should do:
configurations.archives.with {
artifacts.remove artifacts.find { it.archiveTask.is distZip }
}
Something like this should do:
configurations.archives.with {
artifacts.remove artifacts.find { it.archiveTask.is distZip }
}