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

muzzle {
  pass {
    group.set("org.eclipse.jetty")
    module.set("jetty-client")
    versions.set("[9.2,10)")
  }
}

// Jetty client 9.2 is the best starting point, HttpClient.send() is stable there
val jettyVers_base9 = "9.2.0.v20140526"

dependencies {
  implementation(project(":instrumentation:jetty-httpclient:jetty-httpclient-9.2:library"))

  library("org.eclipse.jetty:jetty-client:$jettyVers_base9")

  testImplementation(project(":instrumentation:jetty-httpclient:jetty-httpclient-9.2:testing"))

  latestDepTestLibrary("org.eclipse.jetty:jetty-client:9.+") // documented limitation
}
