build.gradle.kts 579 B

123456789101112131415161718192021222324252627
  1. plugins {
  2. id("otel.java-conventions")
  3. }
  4. val instrumentationProjectTest = tasks.named("test")
  5. subprojects {
  6. val subProj = this
  7. plugins.withId("java") {
  8. instrumentationProjectTest.configure {
  9. dependsOn(subProj.tasks.named("test"))
  10. }
  11. }
  12. }
  13. tasks {
  14. register("listInstrumentations") {
  15. group = "Help"
  16. description = "List all available instrumentation modules"
  17. doFirst {
  18. subprojects
  19. .filter { it.plugins.hasPlugin("io.opentelemetry.instrumentation.muzzle-check") }
  20. .map { it.path }
  21. .forEach { println(it) }
  22. }
  23. }
  24. }