Skip to content

Commit bbb4c6c

Browse files
committed
Do not skip muzzle with running runMuzzle
1 parent 9885025 commit bbb4c6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buildSrc/src/main/kotlin/datadog/gradle/plugin/muzzle/MuzzlePlugin.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ class MuzzlePlugin : Plugin<Project> {
106106
// removing leading ':' if present
107107
val muzzleTaskName = taskName.removePrefix(":")
108108
val projectPath = project.path.removePrefix(":")
109-
muzzleTaskName == "muzzle" || "$projectPath:muzzle" == muzzleTaskName
109+
muzzleTaskName == "muzzle" || "$projectPath:muzzle" == muzzleTaskName ||
110+
muzzleTaskName == "runMuzzle"
110111
}
111112
if (!hasRelevantTask) {
112113
// Adding muzzle dependencies has a large config overhead. Stop unless muzzle is explicitly run.

0 commit comments

Comments
 (0)