Skip to content

Commit a86bb9d

Browse files
amarzialimcculls
andauthored
Do not skip muzzle with running runMuzzle (#10115)
Co-authored-by: Stuart McCulloch <[email protected]>
1 parent 1807b63 commit a86bb9d

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)