build.gradle.kts 568 B

123456789101112131415161718192021222324
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. /*
  5. Note: The Interceptor class for OkHttp was not introduced until 2.2+, so we need to make sure the
  6. instrumentation is not loaded unless the dependency is 2.2+.
  7. */
  8. muzzle {
  9. pass {
  10. group.set("com.squareup.okhttp")
  11. module.set("okhttp")
  12. versions.set("[2.2,3)")
  13. assertInverse.set(true)
  14. }
  15. }
  16. dependencies {
  17. bootstrap(project(":instrumentation:executors:bootstrap"))
  18. library("com.squareup.okhttp:okhttp:2.2.0")
  19. latestDepTestLibrary("com.squareup.okhttp:okhttp:2.+") // see okhttp-3.0 module
  20. }