Skip to content

Gradle plug-in no longer works w/o the :mergeDiktatReports task #1484

@0x6675636b796f75676974687562

Description

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpluginsPlugins for build systems to allow them to run diktatregression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions