Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 'databind' dependency not 'core' in Lambda env #213

Merged

Conversation

NathanielRN
Copy link
Contributor

@NathanielRN NathanielRN commented Feb 1, 2022

Description

Follow up to #211, we did need to bring in a new dependency, but we brought in the wrong one. We need jackson-databind not jackson-core.

We also use implementation instead of runtimeOnly because we want it to be used both when compiling and when published in the POM for downstream, but we don't need to leak it to other modules. We just want it in this one so we have it for BOTH compile time & run time.

We can use runtimeOnly because we don't compile any code.

@NathanielRN NathanielRN requested a review from anuraaga February 1, 2022 01:50
@NathanielRN NathanielRN force-pushed the add-databind-dependency-not-core branch from 5af0d66 to 7de85d0 Compare February 1, 2022 01:52
// See here: https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/5284
runtimeOnly("com.fasterxml.jackson.core:jackson-core")
// See here: https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/5285
implementation("com.fasterxml.jackson.core:jackson-databind")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't compile any code here so can use runtimeOnly

@NathanielRN NathanielRN force-pushed the add-databind-dependency-not-core branch from 7de85d0 to af13d98 Compare February 1, 2022 02:06
@NathanielRN NathanielRN requested a review from anuraaga February 1, 2022 02:08
@wangzlei wangzlei merged commit 8299015 into open-telemetry:main Feb 1, 2022
@NathanielRN NathanielRN deleted the add-databind-dependency-not-core branch February 15, 2022 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants