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

Cannot include both dependencies telemetry-http-okhttp and telemetry-core in build.gradle #314

Open
NipunaMadhushan opened this issue Nov 14, 2023 · 2 comments

Comments

@NipunaMadhushan
Copy link

implementation ("com.newrelic.telemetry:telemetry-http-okhttp:0.16.0")
implementation ("com.newrelic.telemetry:telemetry-core:0.16.0")

When we include the above dependencies in build.gradle, I get the following error.

error: module io.ballerina.observe.extension.newrelic reads package com.newrelic.telemetry from both telemetry.core and com.newrelic.telemetry

Error says that both the dependecncies contains com.newrelic.telemetry package. I have noticed that https://javadoc.io/doc/com.newrelic.telemetry/telemetry-core/latest/index.html and https://javadoc.io/doc/com.newrelic.telemetry/telemetry-http-okhttp/latest/com/newrelic/telemetry/package-summary.html have same package names (com.newrelic.telemetry). Because of this, we cannot use both dependencies together.

@workato-integration
Copy link

@NipunaMadhushan
Copy link
Author

I have solved this issue myself by just removing the module-info.java file in my java project. But I believe having a module-info.java should not be an issue for using two dependencies of the same group id (com.newrelic.telemetry).

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

No branches or pull requests

1 participant