Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ava, embed it instead (#1105)

* OAK-10371: embed Guava in oak*azure bundles

* OAK-10371: remove provided Guava from OSGi tests

* OAK-10371: embed Guava in oak*azure bundles

Override _plugin instruction with an empty value.

* OAK-10371: embed Guava in oak*azure bundles 

Override _plugin instruction with an empty value.

* OAK-10371: embed Guava in oak*azure bundles

 Override _plugin instruction with an empty value.

* OAK-10371: embed Guava in oak*azure bundles

Re-added comment.

* OAK-10371: embed Guava in oak*azure bundles

Re-added comment.

* OAK-10371: use Guava version used by the SDK (for now)

* OAK-10371: suppress a few imports

---------

Co-authored-by: mbaedke <manfred.baedke@gmail.com>
  • Loading branch information
reschke and mbaedke committed Sep 6, 2023
1 parent 2d51b15 commit f948e36
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 17 deletions.
18 changes: 14 additions & 4 deletions oak-blob-cloud-azure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,23 @@
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<instructions combine.self="override">
<Import-Package>
<!-- OAK-10369 -->${guava.osgi.import},
*
!com.google.*,
!org.checkerframework.*,
*
</Import-Package>
<Export-Package>
org.apache.jackrabbit.oak.blob.cloud.azure.blobstorage
</Export-Package>
<DynamicImport-Package>sun.io</DynamicImport-Package>
<Embed-Dependency>
azure-storage,
azure-keyvault-core
azure-keyvault-core,
guava
</Embed-Dependency>
<!-- needed to override value from oak-parent; can be removed when OAK-6741 is resolved -->
<_plugin/>
</instructions>
</configuration>
</plugin>
Expand Down Expand Up @@ -138,6 +142,12 @@
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-keyvault-core</artifactId>
</dependency>
<!-- Azure Guava dependency -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>24.1.1-jre</version>
</dependency>

<!-- Test dependencies -->
<dependency>
Expand Down
7 changes: 0 additions & 7 deletions oak-it-osgi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,6 @@
<artifactId>commons-lang3</artifactId>
<scope>test</scope>
</dependency>
<!-- to be removed when OAK-10371 is resolved -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>15.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
Expand Down
2 changes: 0 additions & 2 deletions oak-it-osgi/test-bundles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
<includes>
<include>javax.jcr:jcr</include>
<include>javax.servlet:javax.servlet-api</include>
<!-- to be removed when OAK-10371 is resolved -->
<include>com.google.guava:guava</include>
<include>org.slf4j:slf4j-api</include>
<include>ch.qos.logback:logback-core</include>
<include>ch.qos.logback:logback-classic</include>
Expand Down
1 change: 0 additions & 1 deletion oak-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
<logback.version>1.2.10</logback.version>
<h2.version>2.1.214</h2.version>
<tika.version>1.28.5</tika.version>
<!-- OAK-10369 --><guava.osgi.import>com.google.common.*;version="[15.0,20)"</guava.osgi.import>
<derby.version>10.15.2.0</derby.version>
<jackson.version>2.13.5</jackson.version>
<testcontainers.version>1.18.3</testcontainers.version>
Expand Down
16 changes: 13 additions & 3 deletions oak-segment-azure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<instructions combine.self="override">
<Import-Package>
<!-- OAK-10369 -->${guava.osgi.import},
org.apache.jackrabbit.oak.segment.spi*,
org.apache.jackrabbit.oak.segment.remote*,
!org.apache.jackrabbit.oak.segment*,
!com.google.*,
!org.checkerframework.*,
*
</Import-Package>
<Export-Package>
Expand All @@ -56,8 +57,11 @@
</Export-Package>
<Embed-Dependency>
azure-storage,
azure-keyvault-core
azure-keyvault-core,
guava
</Embed-Dependency>
<!-- needed to override value from oak-parent; can be removed when OAK-6741 is resolved -->
<_plugin/>
</instructions>
</configuration>
</plugin>
Expand Down Expand Up @@ -140,6 +144,12 @@
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-keyvault-core</artifactId>
</dependency>
<!-- Azure Guava dependency -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>24.1.1-jre</version>
</dependency>

<!-- Test dependencies -->
<dependency>
Expand Down

0 comments on commit f948e36

Please sign in to comment.