Upgrading a project from RC14 to RC16 (although RC...
# detekt
m
Upgrading a project from RC14 to RC16 (although RC15 exhibits same issue). Groovy Gradle DSL. Multi-module project where main has code as well as subprojects. Add Detekt plugin in
allprojects
configuration. When it runs, it succeeds on all projects BUT then Detekt fails with this error: Execution failed for task ':detekt'.
/dev/cbttds/cbttdsshrd-service-base/cbttdsshrd-test/build/reports/detekt/main.xml does not exist
and using --stacktrace shows the following Caused by: java.lang.IllegalStateException: /dev/cbttds/cbttdsshrd-service-base/cbttdsshrd-test/build/reports/detekt/main.xml does not exist at io.gitlab.arturbosch.detekt.output.XmlReportConsolidationKt.readContent(XmlReportConsolidation.kt:44) at io.gitlab.arturbosch.detekt.output.XmlReportConsolidationKt.mergeXmlReports(XmlReportConsolidation.kt:20) Is this an issue specific to multi-module? It seems like Detekt is attempting to consolidate reports or something similar, but I'm not seeing anything in change log about this. Or is this a Gradle task taking place? Any hints or assistance greatly appreciated.
s
m
Thank you. I searched issues but obviously not very well.
a
I pushed a fix for this, thanks for reporting #1763
m
We have the same issue in our project - looking forward to a release with a fix 🙂