build.gradle.kts 736 B

123456789101112131415161718192021222324252627282930
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("com.github.oshi")
  7. module.set("oshi-core")
  8. versions.set("[5.3.1,)")
  9. // Could not parse POM https://repo.maven.apache.org/maven2/com/github/oshi/oshi-core/6.1.1/oshi-core-6.1.1.pom
  10. skip("6.1.1")
  11. }
  12. }
  13. dependencies {
  14. implementation(project(":instrumentation:oshi:library"))
  15. compileOnly("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
  16. compileOnly(project(":javaagent-tooling"))
  17. library("com.github.oshi:oshi-core:5.3.1")
  18. testImplementation(project(":instrumentation:oshi:testing"))
  19. }
  20. tasks {
  21. withType<Test>().configureEach {
  22. jvmArgs("-Dotel.instrumentation.oshi.experimental-metrics.enabled=true")
  23. }
  24. }