build.gradle.kts 819 B

12345678910111213141516171819202122232425262728293031323334
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.eclipse.jetty")
  7. module.set("jetty-client")
  8. versions.set("[9.2,10)")
  9. }
  10. }
  11. // Jetty client 9.2 is the best starting point, HttpClient.send() is stable there
  12. val jettyVers_base9 = "9.2.0.v20140526"
  13. dependencies {
  14. implementation(project(":instrumentation:jetty-httpclient:jetty-httpclient-9.2:library"))
  15. library("org.eclipse.jetty:jetty-client:$jettyVers_base9")
  16. testImplementation(project(":instrumentation:jetty-httpclient:jetty-httpclient-9.2:testing"))
  17. latestDepTestLibrary("org.eclipse.jetty:jetty-client:9.+") // documented limitation
  18. }
  19. tasks {
  20. val testStableSemconv by registering(Test::class) {
  21. jvmArgs("-Dotel.semconv-stability.opt-in=http")
  22. }
  23. check {
  24. dependsOn(testStableSemconv)
  25. }
  26. }