You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In USVM we use gradle convention plugin (buildSrc) to share build logic. When we include Diktat gradle plugin into usvm.kotlin-conventions.gradle.kts, the build fails with the exception.
Expected behavior
The build succeeds.
Observed behavior
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/sergey/Programming/Work/usvm/usvm-core/build.gradle.kts' line: 1
* What went wrong:
An exception occurred applying plugin request [id: 'usvm.kotlin-conventions']
> Failed to apply plugin 'com.saveourtool.diktat'.
> Task with name 'mergeDiktatReports' not found in root project 'usvm'.
Describe the bug
In USVM we use gradle convention plugin (
buildSrc
) to share build logic. When we include Diktat gradle plugin intousvm.kotlin-conventions.gradle.kts
, the build fails with the exception.Expected behavior
The build succeeds.
Observed behavior
Steps to Reproduce
Project structure:
buildSrc/build.gradle.kts
buildSrc/src/main/kotlin/usvm.kotlin-conventions.gradle.kts
usvm-core/build.gradle.kts
plugins { id("usvm.kotlin-conventions") }
Environment information
Extra
Brief investigation led to this snippet:
diktat/diktat-gradle-plugin/src/main/kotlin/com/saveourtool/diktat/plugin/gradle/tasks/SarifReportMergeTask.kt
Lines 92 to 98 in 8d61ddf
Looks like we won't register any task if there are no top-level
build.gradle.kts
.Adding
build.gradle.kts
only withplugins { id("com.saveourtool.diktat") }
solves the problem.
The text was updated successfully, but these errors were encountered: