Skip to content

Commit

Permalink
Enable multi-release Smallrye classes
Browse files Browse the repository at this point in the history
The OSGI bundle plugin was importing the classes directly based
on package. This was a problem, as Smallrye has multi-release
JARs which wouldn't have their versioned classes imported. This
change adds the Multi-Release instruction to the manifest, as
well as imports the Smallrye versioned classes to allow JDK9
compatibility.

Signed-off-by: Matthew Gill <matthew.gill@live.co.uk>
  • Loading branch information
MattGill98 committed Jun 10, 2022
1 parent 1274b52 commit 2e8d7a2
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions appserver/microprofile/config/pom.xml
Expand Up @@ -73,23 +73,16 @@
<instructions>
<Export-Package>
org.glassfish.microprofile.config,
</Export-Package>
<Private-Package>
io.smallrye.config,
io.smallrye.config.common,
io.smallrye.config.inject,

io.smallrye.common.annotation,
io.smallrye.common.classloader,
io.smallrye.common.constraint,
io.smallrye.common.expression,
io.smallrye.common.function,
io.smallrye.config.common.utils,
</Private-Package>
</Export-Package>
<Embed-Dependency>
artifactId=smallrye*;inline=true,
</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
<Multi-Release>true</Multi-Release>
<Include-Resource>
{maven-resources},
{maven-dependencies},
META-INF/hk2-locator/=target/classes/META-INF/hk2-locator/
META-INF/hk2-locator/=target/classes/META-INF/hk2-locator/,
</Include-Resource>
</instructions>
<unpackBundle>true</unpackBundle>
Expand Down

0 comments on commit 2e8d7a2

Please sign in to comment.