build.gradle.kts 691 B

1234567891011121314151617181920212223242526272829
  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. library("com.github.oshi:oshi-core:5.3.1")
  17. testImplementation(project(":instrumentation:oshi:testing"))
  18. }
  19. tasks {
  20. withType<Test>().configureEach {
  21. jvmArgs("-Dotel.instrumentation.oshi.experimental-metrics.enabled=true")
  22. }
  23. }