build.gradle.kts 784 B

123456789101112131415161718192021222324252627
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("com.twilio.sdk")
  7. module.set("twilio")
  8. versions.set("(,8.0.0)")
  9. assertInverse.set(true)
  10. }
  11. }
  12. dependencies {
  13. // this is first version in maven central (there's a 0.0.1 but that is really 7.14.4)
  14. library("com.twilio.sdk:twilio:6.6.9")
  15. // included to make sure the apache httpclient nested spans are suppressed
  16. testInstrumentation(project(":instrumentation:apache-httpclient:apache-httpclient-4.0:javaagent"))
  17. latestDepTestLibrary("com.twilio.sdk:twilio:7.+") // documented limitation
  18. }
  19. tasks.withType<Test>().configureEach {
  20. // TODO run tests both with and without experimental span attributes
  21. jvmArgs("-Dotel.instrumentation.twilio.experimental-span-attributes=true")
  22. }