This repository was archived by the owner on Jan 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
Sam build for otel-wrapper example #68
Copy link
Copy link
Open
Description
I am exploring the otel-wrapper example but am encountering the following error based on the instruction. Am i missing some steps ???
Building codeuri: /Users/mcheng/Documents/git/splunk-otel-java-lambda/examples/otel-wrapper runtime: java11 metadata: {} architecture: x86_64 functions: ['OtelApiGatewayRequestFunction', 'OtelApiGatewayRequestStreamFunction', 'OtelRequestFunction', 'OtelRequestStreamFunction']
/usr/local/bin/gradle is using a JVM with major version 17 which is newer than 11 that is supported by AWS Lambda. The compiled function code may not run in AWS Lambda unless the project has been configured to be compatible with Java 11 using 'targetCompatibility' in Gradle.
Running JavaGradleWorkflow:GradleBuild
Build Failed
Error: JavaGradleWorkflow:GradleBuild - Gradle Failed: FAILURE: Build failed with an exception.
* Where:
Build file '/Users/mcheng/Documents/git/splunk-otel-java-lambda/examples/functions/build.gradle' line: 5
* What went wrong:
A problem occurred evaluating project ':functions'.
> Could not find method compile() for arguments [com.amazonaws:aws-lambda-java-core:1.2.0, com.amazonaws:aws-lambda-java-events:2.2.1, com.amazonaws.serverless:aws-serverless-java-container-jersey:[1.0,), com.google.code.gson:gson:2.8.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 579ms```
Metadata
Metadata
Assignees
Labels
No labels