build.gradle.kts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. // 1.2.0 allows to get the function ARN
  20. testLibrary("com.amazonaws:aws-lambda-java-core:1.2.0")
  21. testImplementation("com.fasterxml.jackson.core:jackson-databind")
  22. testImplementation("commons-io:commons-io:2.2")
  23. testImplementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
  24. testImplementation("io.opentelemetry:opentelemetry-extension-trace-propagators")
  25. testImplementation("com.google.guava:guava")
  26. testImplementation(project(":instrumentation:aws-lambda-1.0:testing"))
  27. testImplementation("org.mockito:mockito-core")
  28. testImplementation("org.assertj:assertj-core")
  29. }