Skip to content

Commit

Permalink
Allow HK2 2.5.0 for OSGi (#4250)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Supol <jan.supol@oracle.com>
  • Loading branch information
jansupol authored and senivam committed Sep 10, 2019
1 parent c7e8476 commit 4dbf75c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions bundles/jaxrs-ri/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@
javax.persistence.*;resolution:=optional,
javax.validation.*;resolution:=optional;version="${range;[==,3);${javax.validation.api.version}}",
sun.misc.*;resolution:=optional,
${hk2.osgi.version},
*
]]></Import-Package>
<Private-Package>
Expand Down
1 change: 1 addition & 0 deletions containers/glassfish/jersey-gf-ejb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
${javax.annotation.osgi.version},
org.glassfish.ejb.*;version="[4.0,6)",
org.glassfish.internal.*;version="[4.0,6)",
${hk2.osgi.version},
*
</Import-Package>
</instructions>
Expand Down
6 changes: 5 additions & 1 deletion ext/cdi/jersey-cdi1x/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@
org.glassfish.jersey.ext.cdi1x.spi,org.glassfish.jersey.ext.cdi1x.internal,
org.glassfish.jersey.ext.cdi1x.internal.spi
</Export-Package>
<Import-Package>${javax.annotation.osgi.version},*</Import-Package>
<Import-Package>
${javax.annotation.osgi.version},
${hk2.osgi.version},
*
</Import-Package>
</instructions>
</configuration>
</plugin>
Expand Down
2 changes: 2 additions & 0 deletions inject/hk2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@
<Import-Package>
sun.misc.*;resolution:=optional,
${javax.annotation.osgi.version},
${hk2.jvnet.osgi.version},
${hk2.osgi.version},
*
</Import-Package>
</instructions>
Expand Down
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2077,6 +2077,8 @@
<helidon.version>1.0.3</helidon.version>
<xmlunit.version>1.6</xmlunit.version>
<hk2.version>2.6.1</hk2.version>
<hk2.osgi.version>org.glassfish.hk2.*;version="[2.5,3)"</hk2.osgi.version>
<hk2.jvnet.osgi.version>org.jvnet.hk2.*;version="[2.5,3)"</hk2.jvnet.osgi.version>
<hk2.config.version>5.1.0</hk2.config.version>
<httpclient.version>4.5.9</httpclient.version>
<istack.commons.runtime.version>3.0.8</istack.commons.runtime.version>
Expand Down

0 comments on commit 4dbf75c

Please sign in to comment.