mirror of
https://github.com/google/brotli.git
synced 2024-11-22 03:30:07 +00:00
turn java library into an OSGi bundle (#545)
This commit is contained in:
parent
d00ccae57f
commit
a015b42683
@ -13,6 +13,11 @@
|
||||
|
||||
<name>${project.groupId}:${project.artifactId}</name>
|
||||
|
||||
<properties>
|
||||
<manifestdir>${project.build.directory}/osgi</manifestdir>
|
||||
<manifestfile>${manifestdir}/MANIFEST.MF</manifestfile>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<sourceDirectory>../../..</sourceDirectory>
|
||||
<testSourceDirectory>../../..</testSourceDirectory>
|
||||
@ -74,6 +79,47 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<version>3.0.1</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<forced>true</forced>
|
||||
</archive>
|
||||
<excludeDependencies>true</excludeDependencies>
|
||||
<manifestLocation>${manifestdir}</manifestLocation>
|
||||
<instructions>
|
||||
<_nouses>true</_nouses>
|
||||
<Bundle-SymbolicName>org.brotli.${project.artifactId}</Bundle-SymbolicName>
|
||||
<Bundle-Description>${project.description}</Bundle-Description>
|
||||
<Export-Package>org.brotli.dec;version=${project.version};-noimport:=true</Export-Package>
|
||||
<Private-Package></Private-Package>
|
||||
<Import-Package>*</Import-Package>
|
||||
<DynamicImport-Package></DynamicImport-Package>
|
||||
<Bundle-DocURL>${project.url}</Bundle-DocURL>
|
||||
</instructions>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>bundle-manifest</id>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>manifest</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.5</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifestFile>${manifestfile}</manifestFile>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user