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

Relocate Guava package com.google.thridparty #661

Closed
florian-beetz opened this issue May 5, 2018 · 2 comments
Closed

Relocate Guava package com.google.thridparty #661

florian-beetz opened this issue May 5, 2018 · 2 comments
Labels
Milestone

Comments

@florian-beetz
Copy link

I noticed that the core library exports the package com.google.thirdparty of Guava.
Is there any reason why this package is not relocated, like all other packages of dependencies?

When this package is relocated, the SDK also seems to be compatible with Java 9.

@dhaval24
Copy link
Contributor

dhaval24 commented May 6, 2018

@florian-beetz we relocate com.google.common but you are correct relocation of this package is missed. However you look at the POM for core: https://search.maven.org/remotecontent?filepath=com/microsoft/azure/applicationinsights-core/2.1.0/applicationinsights-core-2.1.0.pom It doesn't import the guava dependency so I believe it should not be a cause of any sort of conflict.

Further, about Java 9, overall the main issue with the usage is on how to use the Java agent. Have you tried using Java agent to collect dependencies in Java 9 and did it worked out?

@florian-beetz
Copy link
Author

The reason why this is relevant for Java 9 is that JPMS does not allow two modules exporting the same package. So when I try to compile a project that uses both Guava and ApplicationInsights compilation fails.

When this package is relocated the project can be compiled, but I was not aware of the problems with the Java agent.

@littleaj littleaj added the Bug label May 7, 2018
@littleaj littleaj added this to the 2.1.1 milestone May 7, 2018
@dhaval24 dhaval24 modified the milestones: 2.1.1, 2.1.2 May 29, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants