Skip to content

Commit

Permalink
supdev mRSDFPuo - Switch POM to use OSGi bundlers. Thanks, @lburgazzoli!
Browse files Browse the repository at this point in the history
  • Loading branch information
braintreeps committed Feb 10, 2016
1 parent 8edf810 commit bccce86
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
<artifactId>braintree-java</artifactId>
<version>2.54.1-SNAPSHOT</version>
<description>Java Client Library for Braintree Payments Gateway</description>
<packaging>jar</packaging>
<packaging>bundle</packaging>
<name>Braintree Gateway Java Client Library</name>
<url>https://www.braintreegateway.com</url>
<inceptionYear>2013</inceptionYear>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<scmConnection>
</scmConnection>
</properties>
Expand Down Expand Up @@ -67,6 +70,11 @@
<version>4.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>4.2.0</version>
</dependency>
</dependencies>

<profiles> <!-- tasks to be performed only when building releases -->
Expand Down Expand Up @@ -203,6 +211,40 @@
</checkModificationExcludes>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.5.4</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-Name>${project.name}</Bundle-Name>
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
<Export-Package>
com.braintreegateway;-noimport:=true,
com.braintreegateway.exceptions;-noimport:=true,,
com.braintreegateway.util;-noimport:=true,,
com.braintreegateway.test;-noimport:=true
</Export-Package>
<Private-Package>
com.braintreegateway.org.*
</Private-Package>
<Implementation-Title>${project.name}</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
</instructions>
</configuration>
<executions>
<!--
This execution makes sure that the manifest is available when the tests are executed
-->
<execution>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit bccce86

Please sign in to comment.