Repository: camel
Updated Branches:
  refs/heads/master 0b08ae46f -> 7ada8851b


CAMEL-11121: Create a Camel-gRPC karaf feature


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7ada8851
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7ada8851
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7ada8851

Branch: refs/heads/master
Commit: 7ada8851b185d9a7a56eb0bd540439ca300112ed
Parents: 0b08ae4
Author: Andrea Cosentino <anco...@gmail.com>
Authored: Tue May 9 15:08:03 2017 +0200
Committer: Andrea Cosentino <anco...@gmail.com>
Committed: Tue May 9 15:08:37 2017 +0200

----------------------------------------------------------------------
 parent/pom.xml                                  |  1 +
 .../features/src/main/resources/features.xml    |  6 ++++
 .../apache/camel/itest/karaf/CamelGrpcTest.java | 34 ++++++++++++++++++++
 3 files changed, 41 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/7ada8851/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index 19ddb30..1d31aea 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -246,6 +246,7 @@
     <google-truth-version>0.30</google-truth-version>
     <grizzly-websockets-version>2.3.25</grizzly-websockets-version> 
     <grpc-version>1.2.0</grpc-version>
+    <grpc-bundle-version>1.2.0_1</grpc-bundle-version>
     <gson-version>2.7</gson-version>
     <guice-version>4.0</guice-version>
     <guice3-version>3.0</guice3-version>

http://git-wip-us.apache.org/repos/asf/camel/blob/7ada8851/platforms/karaf/features/src/main/resources/features.xml
----------------------------------------------------------------------
diff --git a/platforms/karaf/features/src/main/resources/features.xml 
b/platforms/karaf/features/src/main/resources/features.xml
index 41c420e..f952ce4 100644
--- a/platforms/karaf/features/src/main/resources/features.xml
+++ b/platforms/karaf/features/src/main/resources/features.xml
@@ -707,6 +707,12 @@
     <bundle 
dependency='true'>mvn:org.codehaus.groovy/groovy-all/${groovy-version}</bundle>
     <bundle>mvn:org.apache.camel/camel-groovy/${project.version}</bundle>
   </feature>
+  <feature name='camel-grpc' version='${project.version}' resolver='(obr)' 
start-level='50'>
+    <feature version='${project.version}'>camel-core</feature>
+    <feature version='${project.version}'>camel-spring</feature>
+    <bundle 
dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.grpc/${grpc-bundle-version}</bundle>
+    <bundle>mvn:org.apache.camel/camel-grpc/${project.version}</bundle>
+  </feature>
   <feature name='camel-gson' version='${project.version}' resolver='(obr)' 
start-level='50'>
     <feature version='${project.version}'>camel-core</feature>
     <bundle 
dependency='true'>mvn:com.google.code.gson/gson/${gson-version}</bundle>

http://git-wip-us.apache.org/repos/asf/camel/blob/7ada8851/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelGrpcTest.java
----------------------------------------------------------------------
diff --git 
a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelGrpcTest.java
 
b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelGrpcTest.java
new file mode 100644
index 0000000..4bab3f3
--- /dev/null
+++ 
b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelGrpcTest.java
@@ -0,0 +1,34 @@
+/**
+ * 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.
+ */
+package org.apache.camel.itest.karaf;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.ops4j.pax.exam.junit.PaxExam;
+
+@RunWith(PaxExam.class)
+public class CamelGrpcTest extends BaseKarafTest {
+
+    public static final String COMPONENT = extractName(CamelGrpcTest.class);
+
+    @Test
+    public void test() throws Exception {
+        testComponent(COMPONENT);
+    }
+
+
+}

Reply via email to