What occur on a task name conflict?

What occur if two plugins define the same task?

We think about to add a task with name “zip” to our SetupBuilder plugin https://plugins.gradle.org/plugin/de.inetsoftware.setupbuilder

Currently we have already the tasks msi, deb, rpm and dmg in our plugin. A zip task which create a simple zip file with all files of the setup will complete the list of tasks.

Are there any naming rules or best practices tips for task names of public plugins?

The build will fail.

Best practice is to make both task and extension names as domain specific as possible to avoid any possible naming collisions. In your case I would suggest something like ‘buildSetupMsi’, ‘buildSetupDeb’, etc.