I’m using the ‘distribution’ plugin together with the ‘ivy-publish’ plugin to publish a tar.gz file. The distribution plugin is automatically adding ${distribution.name}DistZip targets and ZIP archives. When I use gradle uploadArchives
I produces and uploads the tar.gz and ZIP archive. I would like to get rid of all the ZIP archives and tasks as I don’t need both (tar.gz and ZIP). I tried with
project.tasks.findAll { it.name.contains('Zip') }.each { task ->
logger.info("Removing ${task}")
project.tasks.remove(task)
}
but this only removes the tasks and not the ZIP archive. How can I get rid of the ZIP archives? Thx