Skip to content

Commit

Permalink
Add OSGi support to manifest in api jar
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Coustick <jonathan.coustick@payara.fish>
  • Loading branch information
Cousjava committed Feb 26, 2020
1 parent dcf0d32 commit f407309
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
</developers>

<properties>
<packages.export>javax.inject.*</packages.export>
<spec_version>1.1</spec_version>
<packages.export>jakarta.inject.*</packages.export>
<spec_version>2.0</spec_version>
</properties>

<build>
Expand Down Expand Up @@ -119,6 +119,34 @@ Use is subject to <a href="{@docRoot}/doc-files/speclicense.html" target="_top">
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>target/classes/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>4.2.1</version>
<configuration>
<instructions>
<Implementation-Version>${spec_version}</Implementation-Version>
</instructions>
</configuration>
<executions>
<execution>
<id>osgi-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit f407309

Please sign in to comment.