Added OSGi Bundle manifest headers to enable use of Gson in OSGi environments.

Fixes issue 120
This commit is contained in:
Inderjeet Singh 2009-05-05 23:31:43 +00:00
parent b44bbbf5e7
commit 6b39f52f53

View File

@ -58,7 +58,7 @@
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
@ -69,8 +69,24 @@
</goals>
</execution>
</executions>
<configuration>
<archive>
<manifestEntries>
<Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
<Export-Package><![CDATA[com.google.json;version=1.3.0, com.google.gson.annotations;version=1.3.0, com.google.gson.reflect;version=1.3.0]]></Export-Package>
<Bundle-Version>1.3.0</Bundle-Version>
<Bundle-ContactAddress>http://code.google.com/p/google-gson/</Bundle-ContactAddress>
<Bundle-Vendor>Google Gson Project</Bundle-Vendor>
<Bundle-Name>${project.name}</Bundle-Name>
<Bundle-Description>${project.description}</Bundle-Description>
<Bundle-ClassPath>.</Bundle-ClassPath>
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
<Bundle-SymbolicName>com.google.gson</Bundle-SymbolicName>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<plugin>
<!-- TODO(inder): add manifest entry for maven group, artifact, and classifier ids -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>