diff --git a/diktat-gradle-plugin/src/main/kotlin/com/saveourtool/diktat/plugin/gradle/tasks/SarifReportMergeTask.kt b/diktat-gradle-plugin/src/main/kotlin/com/saveourtool/diktat/plugin/gradle/tasks/SarifReportMergeTask.kt index 972665d383..43cd6f7b2e 100644 --- a/diktat-gradle-plugin/src/main/kotlin/com/saveourtool/diktat/plugin/gradle/tasks/SarifReportMergeTask.kt +++ b/diktat-gradle-plugin/src/main/kotlin/com/saveourtool/diktat/plugin/gradle/tasks/SarifReportMergeTask.kt @@ -99,7 +99,7 @@ internal fun Project.configureMergeReportsTask() { rootMergeSarifReportsTask.configure { reportMergeTask -> reportMergeTask.input.from(getGitHubActionReporterOutput()) - reportMergeTask.dependsOn(diktatCheckTask) + reportMergeTask.mustRunAfter(diktatCheckTask) } diktatCheckTask.configure { it.finalizedBy(rootMergeSarifReportsTask)