Skip to content

Conversation

@glimmerveen
Copy link
Contributor

The classes from Guava used by Avro are shaded into the final jar, however the OSGi imports are calculated before shading, resulting in a com.google.common* dependency declared in Import-Package manifest header. As a consequence in an OSGi environment one has to install a version of Guava even though that version will not be used by Avro.

By adding !com.google.common* to the Import-Package directive of the maven-bundle-plugin the package(s) of Guava will no longer be declared on the Import-Package of the Avro OSGi bundle.

…s are shaded into the final jar therefore the OSGi bundle does not need to import these packages
@dkulp dkulp merged commit 46d2c8b into apache:master Nov 1, 2018
@glimmerveen glimmerveen deleted the AVRO-2208-remove-unused-osgi-import-guava branch November 1, 2018 20:40
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.

2 participants