aboutsummaryrefslogtreecommitdiffstats
path: root/annotations
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2022-05-04 17:41:49 +0200
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2022-05-04 17:41:49 +0200
commit95cd6ee45ba2a4f8a9a2311a2f821990502cf09b (patch)
tree0046c092376f3fdbfd1e1d2141df9ac96d7ed3cf /annotations
parenta4cdc05c518d194f53b01e0970a85734430867af (diff)
Package 'annotations' as bundle
Diffstat (limited to 'annotations')
-rw-r--r--annotations/pom.xml27
1 files changed, 26 insertions, 1 deletions
diff --git a/annotations/pom.xml b/annotations/pom.xml
index df4f14f2a7d..358188f71c2 100644
--- a/annotations/pom.xml
+++ b/annotations/pom.xml
@@ -9,7 +9,7 @@
<relativePath>../parent/pom.xml</relativePath>
</parent>
<artifactId>annotations</artifactId>
- <packaging>jar</packaging>
+ <packaging>bundle</packaging>
<version>7-SNAPSHOT</version>
<name>annotations</name>
<description>Public API annotations</description>
@@ -46,6 +46,31 @@
<updateReleaseInfo>true</updateReleaseInfo>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>parse-version</id>
+ <goals>
+ <goal>parse-version</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+ <Bundle-Version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</Bundle-Version>
+ <Export-Package>com.yahoo.component.annotation;version=1.0.0;-noimport:=true</Export-Package>
+ <_nouses>true</_nouses> <!-- Don't include 'uses' directives for package exports -->
+ </instructions>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>