-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
45 lines (37 loc) · 1.95 KB
/
build.gradle.kts
File metadata and controls
45 lines (37 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
plugins {
id("otel.library-instrumentation")
}
dependencies {
api(project(":instrumentation:aws-lambda:aws-lambda-core-1.0:library"))
implementation(project(":instrumentation:aws-lambda:aws-lambda-events-common-2.2:library"))
compileOnly(project(":instrumentation:aws-lambda:aws-lambda-events-3.11:library"))
compileOnly("io.opentelemetry:opentelemetry-sdk")
compileOnly("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
library("com.amazonaws:aws-lambda-java-core:1.0.0")
// First version to include support for SQSEvent, currently the most popular message queue used
// with lambda.
// NB: 2.2.0 includes a class called SQSEvent but isn't usable due to it returning private classes
// in public API.
library("com.amazonaws:aws-lambda-java-events:2.2.1")
// By default, the "aws-lambda-java-serialization" library is present on the classpath
// in the AWS Lambda environment except for the deprecated "java8" runtime.
// It is still available on the "java8.al2" runtime, so it can still be used
// by Java 8 based Lambda functions.
// That is why we add it as a compile-only dependency.
compileOnly("com.amazonaws:aws-lambda-java-serialization:1.1.5")
// allows to get the function ARN
testLibrary("com.amazonaws:aws-lambda-java-core:1.2.1")
// allows to get the default events
testLibrary("com.amazonaws:aws-lambda-java-events:3.10.0")
testImplementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
testImplementation("io.opentelemetry:opentelemetry-extension-trace-propagators")
testImplementation("com.amazonaws:aws-lambda-java-serialization:1.1.5")
testImplementation(project(":instrumentation:aws-lambda:aws-lambda-events-2.2:testing"))
testImplementation("uk.org.webcompere:system-stubs-jupiter")
}
tasks.test {
// required on jdk17
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
jvmArgs("--add-opens=java.base/java.util=ALL-UNNAMED")
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
}