hannesstruss
07/19/2019, 3:18 PM$ ./gradlew detekt
...
task :some:module:detekt failed
/project/some/module/submodule/build/reports/detekt/test.xml does not exist
when trying to merge the report of :some:module with the reports of :some:module:submodule (exception thrown here: https://github.com/arturbosch/detekt/blob/1.0.0-RC16/detekt-gradle-plugin/src/main/kotlin/io/gitlab/arturbosch/detekt/output/XmlReportConsolidation.kt#L44 )
The some:module:submodule:detekt tasks runs before some:module:detekt, so I don't think it's an ordering issue – when I run just some:module:submodule:detekt all it generates is detekt.html and detekt.xml.
My theory is that this section:
https://github.com/arturbosch/detekt/blob/1.0.0-RC16/detekt-gradle-plugin/src/main/kotlin/io/gitlab/arturbosch/detekt/output/XmlReportConsolidation.kt#L44
is overeager and finds the detektMain and detektTest tasks even though they didn't run. Is there a way to disable generation of the tasks-per-source-set?