-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add muzzle check to project and GH actions (#529)
- Loading branch information
Showing
7 changed files
with
49 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
// Umbrella task for executing muzzle of all subprojects | ||
// Note that invoking just "/.gradlew muzzle" reports that muzzle was executed, | ||
// but it actually doesn't work, the plugin simply does nothing | ||
// The same applies to executing the gradle task from the working directory of a subproject, like doing it via IntelliJ does | ||
// You must really run exactly "./gradlew clean :instrumentation:muzzle" from the command line to have muzzle actually execute | ||
val instrumentationProjectMuzzle = task("muzzle") | ||
|
||
subprojects { | ||
val subProj = this | ||
plugins.withId("io.opentelemetry.instrumentation.muzzle-check") { | ||
instrumentationProjectMuzzle.dependsOn(subProj.tasks.named("muzzle")) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters