Ich mache einen Build mit Gradle. Wenn ich einen "Gradle Clean Build" mache, führt es alle meine Testfälle aus und baut erfolgreich. Wenn ich eine Grapple clean cobertura mache, erzeugt sie meinen cobertura-Bericht. Ich möchte cobertura-Berichte als Teil von "classle build" integrieren. Ich habe versucht in der unteren Option in build.gradle, aber es gibt mir einen Fehler.Cobertura Aufgabe wird nicht als Teil von Gradle Build enthalten
build{
dependsOn cobertura
}
Fehler, den ich bekam. Irgendwelche Gedanken dazu?
Could not determine the dependencies of task ':build'.
> Cannot convert n[email protected]528e5e38 to a task.
The following types/formats are supported:
- A String or CharSequence task name or path
- A Task instance
- A Buildable instance
- A TaskDependency instance
- A Closure instance that returns any of the above types
- A Callable instance that returns any of the above types
- An Iterable, Collection, Map or array instance that contains any of the above types