Added OSGi Bundle manifest headers to enable use of Gson in OSGi environments.
Fixes issue 120
This commit is contained in:
parent
b44bbbf5e7
commit
6b39f52f53
20
gson/pom.xml
20
gson/pom.xml
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user