build.gradle.kts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. plugins {
  2. id("otel.library-instrumentation")
  3. }
  4. dependencies {
  5. implementation("io.opentelemetry.contrib:opentelemetry-aws-xray-propagator")
  6. library("software.amazon.awssdk:aws-core:2.2.0")
  7. library("software.amazon.awssdk:sqs:2.2.0")
  8. library("software.amazon.awssdk:sns:2.2.0")
  9. library("software.amazon.awssdk:aws-json-protocol:2.2.0")
  10. compileOnly(project(":muzzle")) // For @NoMuzzle
  11. testImplementation(project(":instrumentation:aws-sdk:aws-sdk-2.2:testing"))
  12. testLibrary("software.amazon.awssdk:dynamodb:2.2.0")
  13. testLibrary("software.amazon.awssdk:ec2:2.2.0")
  14. testLibrary("software.amazon.awssdk:kinesis:2.2.0")
  15. testLibrary("software.amazon.awssdk:rds:2.2.0")
  16. testLibrary("software.amazon.awssdk:s3:2.2.0")
  17. }
  18. testing {
  19. suites {
  20. val testCoreOnly by registering(JvmTestSuite::class) {
  21. sources {
  22. groovy {
  23. setSrcDirs(listOf("src/testCoreOnly/groovy"))
  24. }
  25. }
  26. dependencies {
  27. implementation(project())
  28. implementation(project(":instrumentation:aws-sdk:aws-sdk-2.2:testing"))
  29. implementation("software.amazon.awssdk:aws-core:2.2.0")
  30. implementation("software.amazon.awssdk:aws-json-protocol:2.2.0")
  31. implementation("software.amazon.awssdk:dynamodb:2.2.0")
  32. }
  33. }
  34. }
  35. }
  36. tasks {
  37. withType<Test> {
  38. systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
  39. // NB: If you'd like to change these, there is some cleanup work to be done, as most tests ignore this and
  40. // set the value directly (the "library" does not normally query it, only library-autoconfigure)
  41. systemProperty("otel.instrumentation.aws-sdk.experimental-span-attributes", true)
  42. systemProperty("otel.instrumentation.aws-sdk.experimental-use-propagator-for-messaging", true)
  43. }
  44. }