This is an automated email from the ASF dual-hosted git repository.

lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git

commit e6557f481661864879fef64ee23d6de5e2539351
Author: lburgazzoli <lburgazz...@gmail.com>
AuthorDate: Mon Jun 1 11:20:28 2020 +0200

    workaround(quarkus): include rest and restapi factories
---
 .../k/quarkus/deployment/DeploymentProcessor.java  | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git 
a/camel-k-quarkus/camel-k-runtime-quarkus/deployment/src/main/java/org/apache/camel/k/quarkus/deployment/DeploymentProcessor.java
 
b/camel-k-quarkus/camel-k-runtime-quarkus/deployment/src/main/java/org/apache/camel/k/quarkus/deployment/DeploymentProcessor.java
new file mode 100644
index 0000000..c35b6f7
--- /dev/null
+++ 
b/camel-k-quarkus/camel-k-runtime-quarkus/deployment/src/main/java/org/apache/camel/k/quarkus/deployment/DeploymentProcessor.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.k.quarkus.deployment;
+
+import java.util.List;
+
+import io.quarkus.deployment.annotations.BuildStep;
+import 
org.apache.camel.quarkus.core.deployment.spi.CamelServicePatternBuildItem;
+
+public class DeploymentProcessor {
+    @BuildStep
+    public List<CamelServicePatternBuildItem> factoryPatterns() {
+        return List.of(
+            new CamelServicePatternBuildItem(
+            CamelServicePatternBuildItem.CamelServiceDestination.DISCOVERY,
+            true,
+            "META-INF/services/org/apache/camel/rest/*",
+            "META-INF/services/org/apache/camel/restapi/*"));
+    }
+}

Reply via email to