plugins {
  id("otel.javaagent-instrumentation")
}

muzzle {
  pass {
    group.set("com.google.guava")
    module.set("guava")
    versions.set("[10.0,]")
    assertInverse.set(true)
  }
}

tasks.withType<Test>().configureEach {
  // TODO run tests both with and without experimental span attributes
  jvmArgs("-Dotel.instrumentation.guava.experimental-span-attributes=true")
}

dependencies {
  library("com.google.guava:guava:10.0")
  compileOnly(project(":instrumentation-api-annotation-support"))

  implementation(project(":instrumentation:guava-10.0:library"))

  testImplementation(project(":instrumentation:opentelemetry-annotations-1.0:testing"))
  testImplementation("io.opentelemetry:opentelemetry-extension-annotations")
}
