build.gradle.kts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("software.amazon.awssdk")
  7. module.set("aws-core")
  8. versions.set("[2.2.0,)")
  9. // Used by all SDK services, the only case it isn't is an SDK extension such as a custom HTTP
  10. // client, which is not target of instrumentation anyways.
  11. extraDependency("software.amazon.awssdk:protocol-core")
  12. // several software.amazon.awssdk artifacts are missing for this version
  13. skip("2.17.200")
  14. }
  15. }
  16. dependencies {
  17. implementation(project(":instrumentation:aws-sdk:aws-sdk-2.2:library-autoconfigure"))
  18. library("software.amazon.awssdk:aws-core:2.2.0")
  19. testImplementation(project(":instrumentation:aws-sdk:aws-sdk-2.2:testing"))
  20. // Make sure these don't add HTTP headers
  21. testImplementation(project(":instrumentation:apache-httpclient:apache-httpclient-4.0:javaagent"))
  22. testImplementation(project(":instrumentation:netty:netty-4.1:javaagent"))
  23. latestDepTestLibrary("software.amazon.awssdk:aws-json-protocol:+")
  24. latestDepTestLibrary("software.amazon.awssdk:aws-core:+")
  25. latestDepTestLibrary("software.amazon.awssdk:dynamodb:+")
  26. latestDepTestLibrary("software.amazon.awssdk:ec2:+")
  27. latestDepTestLibrary("software.amazon.awssdk:kinesis:+")
  28. latestDepTestLibrary("software.amazon.awssdk:rds:+")
  29. latestDepTestLibrary("software.amazon.awssdk:s3:+")
  30. latestDepTestLibrary("software.amazon.awssdk:sqs:+")
  31. }
  32. tasks.withType<Test>().configureEach {
  33. // TODO run tests both with and without experimental span attributes
  34. jvmArgs("-Dotel.instrumentation.aws-sdk.experimental-span-attributes=true")
  35. }
  36. tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>().configureEach {
  37. mergeServiceFiles {
  38. include("software/amazon/awssdk/global/handlers/execution.interceptors")
  39. }
  40. }