build.gradle.kts 856 B

123456789101112131415161718192021222324252627282930313233343536
  1. plugins {
  2. id("otel.library-instrumentation")
  3. id("otel.nullaway-conventions")
  4. id("otel.animalsniffer-conventions")
  5. }
  6. dependencies {
  7. library("com.squareup.okhttp3:okhttp:3.0.0")
  8. testImplementation(project(":instrumentation:okhttp:okhttp-3.0:testing"))
  9. }
  10. val testLatestDeps = findProperty("testLatestDeps") as Boolean
  11. testing {
  12. suites {
  13. val http2Test by registering(JvmTestSuite::class) {
  14. dependencies {
  15. implementation(project())
  16. if (testLatestDeps) {
  17. implementation("com.squareup.okhttp3:okhttp:+")
  18. compileOnly("com.google.android:annotations:4.1.1.4")
  19. } else {
  20. implementation("com.squareup.okhttp3:okhttp:3.11.0")
  21. }
  22. implementation(project(":instrumentation:okhttp:okhttp-3.0:testing"))
  23. }
  24. }
  25. }
  26. }
  27. tasks {
  28. check {
  29. dependsOn(testing.suites)
  30. }
  31. }