Skip to content

Commit d987e53

Browse files
committed
remove some dependencies
1 parent d858243 commit d987e53

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

instrumentation/aws-lambda/aws-lambda-events-2.2/library/build.gradle.kts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ dependencies {
2424
// So that is the reason that why we add it as compile only dependency.
2525
compileOnly("com.amazonaws:aws-lambda-java-serialization:1.1.5")
2626

27-
// We need Jackson for wrappers to reproduce the serialization does when Lambda invokes a RequestHandler with event
28-
// since Lambda will only be able to invoke the wrapper itself with a generic Object.
29-
// Note that Lambda itself uses Jackson, but does not expose it to the function so we need to include it here.
30-
// TODO: Switch to aws-lambda-java-serialization to more robustly follow Lambda's serialization logic.
31-
implementation("com.fasterxml.jackson.core:jackson-databind")
32-
implementation("io.opentelemetry.contrib:opentelemetry-aws-xray-propagator")
33-
3427
// allows to get the function ARN
3528
testLibrary("com.amazonaws:aws-lambda-java-core:1.2.1")
3629
// allows to get the default events

instrumentation/aws-lambda/aws-lambda-events-common-2.2/library/build.gradle.kts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies {
2020
// But it is available at "java8.al2" runtime, so it is still can be used
2121
// by Java 8 based Lambda functions.
2222
// So that is the reason that why we add it as compile only dependency.
23-
compileOnly("com.amazonaws:aws-lambda-java-serialization:1.1.5")
23+
library("com.amazonaws:aws-lambda-java-serialization:1.1.5")
2424

2525
// We need Jackson for wrappers to reproduce the serialization does when Lambda invokes a RequestHandler with event
2626
// since Lambda will only be able to invoke the wrapper itself with a generic Object.
@@ -29,17 +29,8 @@ dependencies {
2929
implementation("com.fasterxml.jackson.core:jackson-databind")
3030
implementation("io.opentelemetry.contrib:opentelemetry-aws-xray-propagator")
3131

32-
// allows to get the function ARN
33-
testLibrary("com.amazonaws:aws-lambda-java-core:1.2.1")
3432
// allows to get the default events
3533
testLibrary("com.amazonaws:aws-lambda-java-events:3.10.0")
36-
37-
testImplementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
38-
testImplementation("io.opentelemetry:opentelemetry-extension-trace-propagators")
39-
testImplementation("com.amazonaws:aws-lambda-java-serialization:1.1.5")
40-
41-
testImplementation(project(":instrumentation:aws-lambda:aws-lambda-events-2.2:testing"))
42-
testImplementation("uk.org.webcompere:system-stubs-jupiter")
4334
}
4435

4536
tasks.withType<Test>().configureEach {

0 commit comments

Comments
 (0)