aws-lambda-1.0-library.gradle 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright The OpenTelemetry Authors
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. apply from: "$rootDir/gradle/instrumentation-library.gradle"
  17. dependencies {
  18. compileOnly deps.opentelemetrySdk
  19. library group: 'com.amazonaws', name: 'aws-lambda-java-core', version: '1.0.0'
  20. // First version to includes support for SQSEvent, currently the most popular message queue used
  21. // with lambda.
  22. // NB: 2.2.0 includes a class called SQSEvent but isn't usable due to it returning private classes
  23. // in public API.
  24. library group: 'com.amazonaws', name: 'aws-lambda-java-events', version: '2.2.1'
  25. compileOnly(
  26. 'com.fasterxml.jackson.core:jackson-databind:2.10.5.1',
  27. 'com.fasterxml.jackson.module:jackson-module-afterburner:2.9.10',
  28. 'commons-io:commons-io:2.2')
  29. compileOnly deps.slf4j
  30. implementation deps.opentelemetryExtAws
  31. // 1.2.0 allows to get the function ARN
  32. testLibrary group: 'com.amazonaws', name: 'aws-lambda-java-core', version: '1.2.0'
  33. testImplementation(
  34. 'com.fasterxml.jackson.core:jackson-databind:2.10.5.1',
  35. 'com.fasterxml.jackson.module:jackson-module-afterburner:2.9.10',
  36. 'commons-io:commons-io:2.2')
  37. testImplementation deps.opentelemetryTraceProps
  38. testImplementation deps.guava
  39. testImplementation project(':instrumentation:aws-lambda-1.0:testing')
  40. testImplementation group: 'org.mockito', name: 'mockito-core', version: '3.6.0'
  41. testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.18.1'
  42. }