I have a multi-module gradle project and I want to use gradle-cobertura-plugin on my root project:
apply plugin: 'net.saliman.cobertura'
This adds, in particular, the task clean
from the cobertura plugin.
The issue is, there is another apply plugin that I cannot remove, which also adds a task named clean
.
When I try to launch gradle cobertura
, it raises this error:
* What went wrong:
A problem occurred evaluating root project 'root-project'.
> Failed to apply plugin [id 'cobertura']
> Failed to apply plugin [class 'org.gradle.language.base.plugins.LifecycleBasePlugin']
> Cannot add task ':clean' as a task with that name already exists.