You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by jb...@apache.org on 2018/02/01 14:21:27 UTC

servicemix-bundles git commit: [SM-3627] Create OSGi bundle for braintree-java 2.75.0

Repository: servicemix-bundles
Updated Branches:
  refs/heads/master 2958bb87b -> 4b3cf9fef


[SM-3627] Create OSGi bundle for braintree-java 2.75.0


Project: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/repo
Commit: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/commit/4b3cf9fe
Tree: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/tree/4b3cf9fe
Diff: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/diff/4b3cf9fe

Branch: refs/heads/master
Commit: 4b3cf9fef6bf3604d2a2f18c7cdcdbecbb8a087c
Parents: 2958bb8
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Thu Feb 1 15:21:00 2018 +0100
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Thu Feb 1 15:21:00 2018 +0100

----------------------------------------------------------------------
 braintree-java-2.75.0/pom.xml                   | 113 +++++++++++++++++++
 .../src/main/resources/OSGI-INF/bundle.info     |  15 +++
 pom.xml                                         |   4 +-
 3 files changed, 130 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/4b3cf9fe/braintree-java-2.75.0/pom.xml
----------------------------------------------------------------------
diff --git a/braintree-java-2.75.0/pom.xml b/braintree-java-2.75.0/pom.xml
new file mode 100644
index 0000000..d8a81c8
--- /dev/null
+++ b/braintree-java-2.75.0/pom.xml
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <!--
+
+        Licensed to the Apache Software Foundation (ASF) under one or more
+        contributor license agreements.  See the NOTICE file distributed with
+        this work for additional information regarding copyright ownership.
+        The ASF licenses this file to You under the Apache License, Version 2.0
+        (the "License"); you may not use this file except in compliance with
+        the License.  You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+
+        Unless required by applicable law or agreed to in writing, software
+        distributed under the License is distributed on an "AS IS" BASIS,
+        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+        See the License for the specific language governing permissions and
+        limitations under the License.
+    -->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.servicemix.bundles</groupId>
+        <artifactId>bundles-pom</artifactId>
+        <version>13</version>
+        <relativePath>../bundles-pom/pom.xml</relativePath>
+    </parent>
+
+    <groupId>org.apache.servicemix.bundles</groupId>
+    <artifactId>org.apache.servicemix.bundles.braintree-java</artifactId>
+    <version>2.75.0_1-SNAPSHOT</version>
+    <packaging>bundle</packaging>
+    <name>Apache ServiceMix :: Bundles :: ${pkgArtifactId}</name>
+    <description>This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.</description>
+
+    <scm>
+        <connection>scm:git:https://git-wip-us.apache.org/repos/asf/servicemix-bundles.git</connection>
+        <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/servicemix-bundles.git</developerConnection>
+        <url>https://git-wip-us.apache.org/repos/asf?p=servicemix-bundles.git</url>
+    <tag>HEAD</tag>
+  </scm>
+
+    <properties>
+        <pkgGroupId>com.braintreepayments.gateway</pkgGroupId>
+        <pkgArtifactId>braintree-java</pkgArtifactId>
+        <pkgVersion>2.75.0</pkgVersion>
+        <servicemix.osgi.export.pkg>
+            com.braintreegateway;version=${pkgVersion};-split-package:=merge-first,
+            com.braintreegateway.exceptions;version=${pkgVersion};-split-package:=merge-first,
+            com.braintreegateway.util;version=${pkgVersion};-split-package:=merge-first,
+            com.braintreegateway.test;version=${pkgVersion};-split-package:=merge-first
+        </servicemix.osgi.export.pkg>
+        <servicemix.osgi.private.pkg>
+            com.braintreegateway.org.*;-split-package:=merge-first
+        </servicemix.osgi.private.pkg>
+        <servicemix.osgi.import.pkg>
+            org.json;resolution:=optional,
+        </servicemix.osgi.import.pkg>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>${pkgGroupId}</groupId>
+            <artifactId>braintree-java</artifactId>
+            <version>${pkgVersion}</version>
+        </dependency>
+
+        <!-- sources -->
+        <dependency>
+            <groupId>${pkgGroupId}</groupId>
+            <artifactId>braintree-java</artifactId>
+            <version>${pkgVersion}</version>
+            <classifier>sources</classifier>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-shade-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>shade</goal>
+                        </goals>
+                        <configuration>
+                            <artifactSet>
+                                <includes>
+                                    <include>${pkgGroupId}:t${pkgArtifactId}</include>
+                                </includes>
+                            </artifactSet>
+                            <filters>
+                                <filter>
+                                    <artifact>${pkgGroupId}:${pkgArtifactId}</artifact>
+                                    <includes>
+                                        <include>**/*.properties</include>
+                                        <include>ssl/**</include>
+                                    </includes>
+                                </filter>
+                            </filters>
+                            <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
+                            <createDependencyReducedPom>true</createDependencyReducedPom>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/4b3cf9fe/braintree-java-2.75.0/src/main/resources/OSGI-INF/bundle.info
----------------------------------------------------------------------
diff --git a/braintree-java-2.75.0/src/main/resources/OSGI-INF/bundle.info b/braintree-java-2.75.0/src/main/resources/OSGI-INF/bundle.info
new file mode 100644
index 0000000..0189e2f
--- /dev/null
+++ b/braintree-java-2.75.0/src/main/resources/OSGI-INF/bundle.info
@@ -0,0 +1,15 @@
+\u001B[1mSYNOPSIS\u001B[0m
+    ${project.description}
+
+    Original Maven URL:
+        \u001B[33mmvn:${pkgGroupId}/${pkgArtifactId}\u001B[0m
+
+\u001B[1mDESCRIPTION\u001B[0m
+    Braintree makes it easy to accept payments in your app or website. 
+    
+    Get integrated quickly using our guides and selecting from our range of 
+    client SDKs and server SDKs.
+
+\u001B[1mSEE ALSO\u001B[0m
+    \u001B[36mhttps://developers.braintreepayments.com\u001B[0m
+    \u001B[36mhttps://developers.braintreepayments.com/start/hello-server/java\u001B[0m

http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/4b3cf9fe/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index de955f5..5ba0bde 100644
--- a/pom.xml
+++ b/pom.xml
@@ -43,7 +43,6 @@
 
     <modules>
         <module>snmp4j-2.5.11</module>
-        <module>braintree-java-2.74.0</module>
         <module>fastjson-1.2.45</module>
         <module>elasticsearch-6.1.1</module>
         <module>spring-aop-5.0.3.RELEASE</module>
@@ -101,7 +100,6 @@
         <module>aws-java-sdk-1.11.269</module>
         <module>solr-solrj-7.2.1</module>
         <module>postgresql-42.2.0.jre7</module>
-        <module>braintree-java-2.74.1</module>
         <module>elasticsearch-2.2.1</module>
         <module>elasticsearch-2.2.0</module>
         <module>spring-security-acl-4.2.4.RELEASE</module>
@@ -111,6 +109,8 @@
         <module>spring-security-taglibs-4.2.4.RELEASE</module>
         <module>spring-security-web-4.2.4.RELEASE</module>
         <module>hibernate-validator-5.4.2.Final</module>
+        <module>braintree-java-2.74.1</module>
+        <module>braintree-java-2.75.0</module>
     </modules>
 
 </project>