As of version 1.2.2, the Gradle plug-in requires the :mergeDiktatReports task to be present, even for single-module projects.
This behaviour shouldn't apply in the following cases:
- single-module projects;
- projects where
reporter is set to anything but sarif (e.g.: plain).
Observed behavior
C:\project> gradle --continue diktatCheck
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':diktatCheck'.
> Could not create task ':mergeDiktatReports'.
> Could not create task of type 'SarifReportMergeTask'.
> Could not generate a decorated class for type SarifReportMergeTask.
> kotlinx/serialization/SerializationException
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
Steps to Reproduce
Try to run gradle diktatCheck or ./gradlew diktatCheck for either this template project, or any of the Gradle projects under examples/.
Environment information
As of version 1.2.2, the Gradle plug-in requires the
:mergeDiktatReportstask to be present, even for single-module projects.This behaviour shouldn't apply in the following cases:
reporteris set to anything butsarif(e.g.:plain).Observed behavior
Steps to Reproduce
Try to run
gradle diktatCheckor./gradlew diktatCheckfor either this template project, or any of the Gradle projects underexamples/.Environment information