build.gradle.kts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("com.squareup.okhttp3")
  7. module.set("okhttp")
  8. versions.set("[3.0,)")
  9. assertInverse.set(true)
  10. }
  11. }
  12. dependencies {
  13. bootstrap(project(":instrumentation:executors:bootstrap"))
  14. implementation(project(":instrumentation:okhttp:okhttp-3.0:library"))
  15. library("com.squareup.okhttp3:okhttp:3.0.0")
  16. testImplementation(project(":instrumentation:okhttp:okhttp-3.0:testing"))
  17. }
  18. val testLatestDeps = findProperty("testLatestDeps") as Boolean
  19. testing {
  20. suites {
  21. val http2Test by registering(JvmTestSuite::class) {
  22. dependencies {
  23. if (testLatestDeps) {
  24. implementation("com.squareup.okhttp3:okhttp:+")
  25. compileOnly("com.google.android:annotations:4.1.1.4")
  26. } else {
  27. implementation("com.squareup.okhttp3:okhttp:3.11.0")
  28. }
  29. implementation(project(":instrumentation:okhttp:okhttp-3.0:testing"))
  30. }
  31. }
  32. }
  33. }
  34. tasks {
  35. check {
  36. dependsOn(testing.suites)
  37. }
  38. }