truth
truth copied to clipboard
Add osgi manifest to jar.
It is very easy to add and would be a great help for all osgi users. Here a example maven plugin config taken from the google guava pom.xml:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
<configuration>
<instructions>
<Export-Package>!com.google.common.base.internal,com.google.common.*</Export-Package>
<Import-Package>
javax.annotation;resolution:=optional,
sun.misc.*;resolution:=optional
</Import-Package>
</instructions>
</configuration>
</plugin>
I second this request.
And please do so before/in the 1.0 release.
Bump! +1
This is a very old bug now (~7 years since it was filed). Can you describe why someone might use Truth as a dependency in an OSGI application?
@nglorioso The immediate one that comes to mind is.... well, tests via the likes of pax-test, which deploys junit and your tests as an OSGi bundle into a container, and executes the tests from with the OSGi runtime.
Like an integration test. Being able to deploy truth along side as a bundle would be good there, rather than having to embed/wrap it.