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

Added code changes to pom-versioned.xml to support osgi bundling for kryo5. #818

Merged
merged 4 commits into from
Apr 6, 2021
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion pom-versioned.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<groupId>com.esotericsoftware.kryo</groupId>
<artifactId>kryo${kryo.major.version}</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>

<name>Kryo ${kryo.major.version}</name>
<description>Fast, efficient Java serialization. This is the version specific Kryo artifact.</description>
Expand Down Expand Up @@ -82,6 +82,34 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Import-Package><![CDATA[
COM.jrockit*;resolution:=optional,
COM.newmonics*;resolution:=optional,
jrockit*;resolution:=optional,
sun.reflect;resolution:=optional,
sun.misc;resolution:=optional,
sun.nio.ch;resolution:=optional
]]>
</Import-Package>
<Export-Package>
com.esotericsoftware.kryo.kryo${kryo.major.version},
com.esotericsoftware.kryo.kryo${kryo.major.version}.io,
com.esotericsoftware.kryo.kryo${kryo.major.version}.serializers,
com.esotericsoftware.kryo.kryo${kryo.major.version}.unsafe,
com.esotericsoftware.kryo.kryo${kryo.major.version}.util,
com.esotericsoftware.kryo.kryo${kryo.major.version}.objenesis,
com.esotericsoftware.kryo.kryo${kryo.major.version}.objenesis.instantiator,
com.esotericsoftware.kryo.kryo${kryo.major.version}.objenesis.strategy
</Export-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>

Expand Down