build.gradle.kts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. plugins {
  2. id("otel.library-instrumentation")
  3. }
  4. dependencies {
  5. compileOnly("io.opentelemetry:opentelemetry-sdk")
  6. compileOnly("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
  7. compileOnly("com.google.auto.value:auto-value-annotations")
  8. annotationProcessor("com.google.auto.value:auto-value")
  9. library("com.amazonaws:aws-lambda-java-core:1.0.0")
  10. // First version to includes support for SQSEvent, currently the most popular message queue used
  11. // with lambda.
  12. // NB: 2.2.0 includes a class called SQSEvent but isn't usable due to it returning private classes
  13. // in public API.
  14. library("com.amazonaws:aws-lambda-java-events:2.2.1")
  15. compileOnly("com.fasterxml.jackson.core:jackson-databind")
  16. compileOnly("commons-io:commons-io:2.2")
  17. compileOnly("org.slf4j:slf4j-api")
  18. implementation("io.opentelemetry:opentelemetry-extension-aws")
  19. // allows to get the function ARN
  20. testLibrary("com.amazonaws:aws-lambda-java-core:1.2.1")
  21. // allows to get the default events
  22. testLibrary("com.amazonaws:aws-lambda-java-events:3.10.0")
  23. testImplementation("com.fasterxml.jackson.core:jackson-databind")
  24. testImplementation("commons-io:commons-io:2.2")
  25. testImplementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
  26. testImplementation("io.opentelemetry:opentelemetry-extension-trace-propagators")
  27. testImplementation("com.google.guava:guava")
  28. testImplementation(project(":instrumentation:aws-lambda-1.0:testing"))
  29. testImplementation("org.mockito:mockito-core")
  30. testImplementation("org.assertj:assertj-core")
  31. }