You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2021/06/02 11:18:51 UTC

[camel-k-runtime] branch camel-main updated (2546f2a -> ec5d332)

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

orpiske pushed a change to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git.


    from 2546f2a  Fixed checkstyle violations
     new ee2ea15  Fixed Java loader tests for Camel Quarkus 2.0.0 / Camel 3.10
     new 2900a2d  Fixed JS loader tests for Camel Quarkus 2.0.0 / Camel 3.10
     new e237263  Fixed jsh loader tests for Camel Quarkus 2.0.0 / Camel 3.10
     new d418bf5  Fixed Polyglot loader tests for Camel Quarkus 2.0.0 / Camel 3.10
     new 150429b  Fixed XML loader tests for Camel Quarkus 2.0.0 / Camel 3.10
     new ec37eda  Fixed YAML loader tests for Camel Quarkus 2.0.0 / Camel 3.10
     new 5d29ede  Fixed Kotlin loader tests for Camel Quarkus 2.0.0 / Camel 3.10
     new 9e75752  Fixed runtime tests for Camel Quarkus 2.0.0 / Camel 3.10
     new 1a489b9  Fixed cron tests for Camel Quarkus 2.0.0 / Camel 3.10
     new 5e5964e  Fixed knative tests for Camel Quarkus 2.0.0 / Camel 3.10
     new 29e7cc1  Fixed kamelet tests for Camel Quarkus 2.0.0 / Camel 3.10
     new 0734e7d  Fixed webhook tests for Camel Quarkus 2.0.0 / Camel 3.10
     new 6f8551c  Fixed examples for Camel Quarkus 2.0.0 / Camel 3.10
     new ec5d332  Fixed checkstyle violations on kamelet reify tests

The 14 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 examples/cron/pom.xml                               |  4 ++--
 examples/groovy/pom.xml                             |  4 ++--
 examples/kamelets/pom.xml                           |  4 ++--
 examples/knative/pom.xml                            |  4 ++--
 examples/yaml/pom.xml                               |  4 ++--
 itests/camel-k-itests-cron/pom.xml                  | 17 ++---------------
 itests/camel-k-itests-kamelet-reify/pom.xml         | 21 ++++-----------------
 .../kameletreify/KameletReifyTestResource.java      |  5 ++---
 itests/camel-k-itests-kamelet/pom.xml               | 17 ++---------------
 .../pom.xml                                         | 20 ++++----------------
 .../pom.xml                                         | 17 ++---------------
 itests/camel-k-itests-knative-sinkbinding/pom.xml   | 20 ++++----------------
 itests/camel-k-itests-knative-source-groovy/pom.xml | 13 -------------
 itests/camel-k-itests-knative-source-yaml/pom.xml   | 20 ++++----------------
 itests/camel-k-itests-knative/pom.xml               | 20 ++++----------------
 .../camel/k/loader/jsh/quarkus/Application.java     |  4 ++--
 .../camel/k/loader/js/quarkus/Application.java      |  4 ++--
 .../camel/k/loader/jsh/quarkus/JshApplication.java  |  4 ++--
 .../camel/k/loader/kotlin/quarkus/Application.java  |  4 ++--
 itests/camel-k-itests-loader-polyglot/pom.xml       | 17 ++---------------
 .../k/itests/polyglot/quarkus/Application.java      |  4 ++--
 .../camel/k/loader/xml/quarkus/Application.java     |  4 ++--
 itests/camel-k-itests-loader-yaml/pom.xml           | 19 ++-----------------
 .../camel/k/loader/yaml/quarkus/Application.java    |  4 ++--
 itests/camel-k-itests-runtime-yaml/pom.xml          | 17 ++---------------
 itests/camel-k-itests-runtime/pom.xml               |  6 +++---
 itests/camel-k-itests-webhook/pom.xml               | 20 ++++----------------
 27 files changed, 65 insertions(+), 232 deletions(-)

[camel-k-runtime] 01/14: Fixed Java loader tests for Camel Quarkus 2.0.0 / Camel 3.10

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit ee2ea15ea29d18aeed54df3c8ca42979fe0be659
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Wed Jun 2 09:13:11 2021 +0200

    Fixed Java loader tests for Camel Quarkus 2.0.0 / Camel 3.10
---
 .../main/java/org/apache/camel/k/loader/jsh/quarkus/Application.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/itests/camel-k-itests-loader-java/src/main/java/org/apache/camel/k/loader/jsh/quarkus/Application.java b/itests/camel-k-itests-loader-java/src/main/java/org/apache/camel/k/loader/jsh/quarkus/Application.java
index 1c7d5d3..274ec07 100644
--- a/itests/camel-k-itests-loader-java/src/main/java/org/apache/camel/k/loader/jsh/quarkus/Application.java
+++ b/itests/camel-k-itests-loader-java/src/main/java/org/apache/camel/k/loader/jsh/quarkus/Application.java
@@ -19,6 +19,7 @@ package org.apache.camel.k.loader.jsh.quarkus;
 import javax.enterprise.context.ApplicationScoped;
 import javax.inject.Inject;
 import javax.json.JsonObject;
+import javax.ws.rs.Consumes;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
@@ -26,7 +27,6 @@ import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 
 import org.apache.camel.CamelContext;
-import org.apache.camel.Consume;
 import org.apache.camel.k.loader.support.LoaderSupport;
 
 @Path("/test")
@@ -37,7 +37,7 @@ public class Application {
 
     @POST
     @Path("/load-routes/{name}")
-    @Consume(MediaType.TEXT_PLAIN)
+    @Consumes(MediaType.TEXT_PLAIN)
     @Produces(MediaType.APPLICATION_JSON)
     public JsonObject loadRoutes(@PathParam("name") String name, String code) throws Exception {
         return LoaderSupport.inspectSource(context, name + ".java", code);

[camel-k-runtime] 04/14: Fixed Polyglot loader tests for Camel Quarkus 2.0.0 / Camel 3.10

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit d418bf5076a25ec1749368ebb3f99239d225ff11
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Wed Jun 2 09:14:25 2021 +0200

    Fixed Polyglot loader tests for Camel Quarkus 2.0.0 / Camel 3.10
---
 itests/camel-k-itests-loader-polyglot/pom.xml           | 17 ++---------------
 .../camel/k/itests/polyglot/quarkus/Application.java    |  4 ++--
 2 files changed, 4 insertions(+), 17 deletions(-)

diff --git a/itests/camel-k-itests-loader-polyglot/pom.xml b/itests/camel-k-itests-loader-polyglot/pom.xml
index 3308daf..837e849 100644
--- a/itests/camel-k-itests-loader-polyglot/pom.xml
+++ b/itests/camel-k-itests-loader-polyglot/pom.xml
@@ -35,8 +35,8 @@
 
         <!-- camel quarkus -->
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
@@ -90,19 +90,6 @@
                 </exclusion>
             </exclusions>
         </dependency>
-        <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml-deployment</artifactId>
-            <version>${project.version}</version>
-            <type>pom</type>
-            <scope>test</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>*</groupId>
-                    <artifactId>*</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
     </dependencies>
 
     <profiles>
diff --git a/itests/camel-k-itests-loader-polyglot/src/main/java/org/apache/camel/k/itests/polyglot/quarkus/Application.java b/itests/camel-k-itests-loader-polyglot/src/main/java/org/apache/camel/k/itests/polyglot/quarkus/Application.java
index f062989..65c2cea 100644
--- a/itests/camel-k-itests-loader-polyglot/src/main/java/org/apache/camel/k/itests/polyglot/quarkus/Application.java
+++ b/itests/camel-k-itests-loader-polyglot/src/main/java/org/apache/camel/k/itests/polyglot/quarkus/Application.java
@@ -19,6 +19,7 @@ package org.apache.camel.k.itests.polyglot.quarkus;
 import javax.enterprise.context.ApplicationScoped;
 import javax.inject.Inject;
 import javax.json.JsonObject;
+import javax.ws.rs.Consumes;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
@@ -26,7 +27,6 @@ import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 
 import org.apache.camel.CamelContext;
-import org.apache.camel.Consume;
 import org.apache.camel.k.loader.support.LoaderSupport;
 
 @Path("/test")
@@ -37,7 +37,7 @@ public class Application {
 
     @POST
     @Path("/load-routes/{loaderName}/{name}")
-    @Consume(MediaType.APPLICATION_OCTET_STREAM)
+    @Consumes(MediaType.APPLICATION_OCTET_STREAM)
     @Produces(MediaType.APPLICATION_JSON)
     public JsonObject loadRoutes(@PathParam("loaderName") String loaderName, @PathParam("name") String name, byte[] code) throws Exception {
         return LoaderSupport.inspectSource(context, name + "." + loaderName, code);

[camel-k-runtime] 06/14: Fixed YAML loader tests for Camel Quarkus 2.0.0 / Camel 3.10

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit ec37eda7902fa20e5b59b383b86ba360ea6a85f3
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Wed Jun 2 09:14:44 2021 +0200

    Fixed YAML loader tests for Camel Quarkus 2.0.0 / Camel 3.10
---
 itests/camel-k-itests-loader-yaml/pom.xml             | 19 ++-----------------
 .../camel/k/loader/yaml/quarkus/Application.java      |  4 ++--
 2 files changed, 4 insertions(+), 19 deletions(-)

diff --git a/itests/camel-k-itests-loader-yaml/pom.xml b/itests/camel-k-itests-loader-yaml/pom.xml
index 7e88866..3bf1be7 100644
--- a/itests/camel-k-itests-loader-yaml/pom.xml
+++ b/itests/camel-k-itests-loader-yaml/pom.xml
@@ -35,8 +35,8 @@
 
         <!-- camel quarkus -->
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
@@ -67,21 +67,6 @@
             <artifactId>assertj-core</artifactId>
             <scope>test</scope>
         </dependency>
-
-        <!-- The following dependencies guarantee that this module is built after them.  -->
-        <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml-deployment</artifactId>
-            <version>${project.version}</version>
-            <type>pom</type>
-            <scope>test</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>*</groupId>
-                    <artifactId>*</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
     </dependencies>
 
     <profiles>
diff --git a/itests/camel-k-itests-loader-yaml/src/main/java/org/apache/camel/k/loader/yaml/quarkus/Application.java b/itests/camel-k-itests-loader-yaml/src/main/java/org/apache/camel/k/loader/yaml/quarkus/Application.java
index 926f80d..6b145af 100644
--- a/itests/camel-k-itests-loader-yaml/src/main/java/org/apache/camel/k/loader/yaml/quarkus/Application.java
+++ b/itests/camel-k-itests-loader-yaml/src/main/java/org/apache/camel/k/loader/yaml/quarkus/Application.java
@@ -19,6 +19,7 @@ package org.apache.camel.k.loader.yaml.quarkus;
 import javax.enterprise.context.ApplicationScoped;
 import javax.inject.Inject;
 import javax.json.JsonObject;
+import javax.ws.rs.Consumes;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
@@ -26,7 +27,6 @@ import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 
 import org.apache.camel.CamelContext;
-import org.apache.camel.Consume;
 import org.apache.camel.k.loader.support.LoaderSupport;
 
 @Path("/test")
@@ -37,7 +37,7 @@ public class Application {
 
     @POST
     @Path("/load-routes/{name}")
-    @Consume(MediaType.TEXT_PLAIN)
+    @Consumes(MediaType.TEXT_PLAIN)
     @Produces(MediaType.APPLICATION_JSON)
     public JsonObject loadRoutes(@PathParam("name") String name, String code) throws Exception {
         return LoaderSupport.inspectSource(context, name + ".yaml", code);

[camel-k-runtime] 09/14: Fixed cron tests for Camel Quarkus 2.0.0 / Camel 3.10

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 1a489b9671d86fc4edef8669038501e55af8b92b
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Wed Jun 2 09:28:44 2021 +0200

    Fixed cron tests for Camel Quarkus 2.0.0 / Camel 3.10
---
 itests/camel-k-itests-cron/pom.xml | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/itests/camel-k-itests-cron/pom.xml b/itests/camel-k-itests-cron/pom.xml
index 0ce0676..22d5a95 100644
--- a/itests/camel-k-itests-cron/pom.xml
+++ b/itests/camel-k-itests-cron/pom.xml
@@ -40,8 +40,8 @@
         <!-- camel quarkus -->
 
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
@@ -106,19 +106,6 @@
         </dependency>
         <dependency>
             <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml-deployment</artifactId>
-            <version>${project.version}</version>
-            <type>pom</type>
-            <scope>test</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>*</groupId>
-                    <artifactId>*</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.camel.k</groupId>
             <artifactId>camel-k-cron-deployment</artifactId>
             <version>${project.version}</version>
             <type>pom</type>

[camel-k-runtime] 10/14: Fixed knative tests for Camel Quarkus 2.0.0 / Camel 3.10

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 5e5964e50c3d790b7b6df3edc07b4f6104006545
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Wed Jun 2 09:38:27 2021 +0200

    Fixed knative tests for Camel Quarkus 2.0.0 / Camel 3.10
---
 .../pom.xml                                          | 20 ++++----------------
 .../camel-k-itests-knative-env-from-registry/pom.xml | 17 ++---------------
 itests/camel-k-itests-knative-sinkbinding/pom.xml    | 20 ++++----------------
 itests/camel-k-itests-knative-source-groovy/pom.xml  | 13 -------------
 itests/camel-k-itests-knative-source-yaml/pom.xml    | 20 ++++----------------
 itests/camel-k-itests-knative/pom.xml                | 20 ++++----------------
 6 files changed, 18 insertions(+), 92 deletions(-)

diff --git a/itests/camel-k-itests-knative-env-from-properties/pom.xml b/itests/camel-k-itests-knative-env-from-properties/pom.xml
index 571bcdf..c8ebc97 100644
--- a/itests/camel-k-itests-knative-env-from-properties/pom.xml
+++ b/itests/camel-k-itests-knative-env-from-properties/pom.xml
@@ -45,11 +45,12 @@
             <artifactId>camel-k-knative-consumer</artifactId>
         </dependency>
 
-        <!-- camel quarkus -->
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
+
+        <!-- camel quarkus -->
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
             <artifactId>camel-quarkus-direct</artifactId>
@@ -112,19 +113,6 @@
                 </exclusion>
             </exclusions>
         </dependency>
-        <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
-            <version>${project.version}</version>
-            <type>pom</type>
-            <scope>test</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>*</groupId>
-                    <artifactId>*</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
     </dependencies>
 
     <build>
diff --git a/itests/camel-k-itests-knative-env-from-registry/pom.xml b/itests/camel-k-itests-knative-env-from-registry/pom.xml
index c76a7a0..d4a3d7f 100644
--- a/itests/camel-k-itests-knative-env-from-registry/pom.xml
+++ b/itests/camel-k-itests-knative-env-from-registry/pom.xml
@@ -47,8 +47,8 @@
 
         <!-- camel quarkus -->
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
@@ -112,19 +112,6 @@
                 </exclusion>
             </exclusions>
         </dependency>
-        <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
-            <version>${project.version}</version>
-            <type>pom</type>
-            <scope>test</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>*</groupId>
-                    <artifactId>*</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
     </dependencies>
 
     <build>
diff --git a/itests/camel-k-itests-knative-sinkbinding/pom.xml b/itests/camel-k-itests-knative-sinkbinding/pom.xml
index e7cabac..13040eb 100644
--- a/itests/camel-k-itests-knative-sinkbinding/pom.xml
+++ b/itests/camel-k-itests-knative-sinkbinding/pom.xml
@@ -41,11 +41,12 @@
             <artifactId>camel-k-knative-producer</artifactId>
         </dependency>
 
-        <!-- camel quarkus -->
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
+
+        <!-- camel quarkus -->
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
             <artifactId>camel-quarkus-direct</artifactId>
@@ -108,19 +109,6 @@
                 </exclusion>
             </exclusions>
         </dependency>
-        <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
-            <version>${project.version}</version>
-            <type>pom</type>
-            <scope>test</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>*</groupId>
-                    <artifactId>*</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
     </dependencies>
 
     <profiles>
diff --git a/itests/camel-k-itests-knative-source-groovy/pom.xml b/itests/camel-k-itests-knative-source-groovy/pom.xml
index 6a94d02..7857617 100644
--- a/itests/camel-k-itests-knative-source-groovy/pom.xml
+++ b/itests/camel-k-itests-knative-source-groovy/pom.xml
@@ -121,19 +121,6 @@
                 </exclusion>
             </exclusions>
         </dependency>
-        <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-groovy</artifactId>
-            <version>${project.version}</version>
-            <type>pom</type>
-            <scope>test</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>*</groupId>
-                    <artifactId>*</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
     </dependencies>
 
     <build>
diff --git a/itests/camel-k-itests-knative-source-yaml/pom.xml b/itests/camel-k-itests-knative-source-yaml/pom.xml
index 38dfd80..99b3cd6 100644
--- a/itests/camel-k-itests-knative-source-yaml/pom.xml
+++ b/itests/camel-k-itests-knative-source-yaml/pom.xml
@@ -45,11 +45,12 @@
             <artifactId>camel-k-knative-consumer</artifactId>
         </dependency>
 
-        <!-- camel quarkus -->
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
+
+        <!-- camel quarkus -->
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
             <artifactId>camel-quarkus-direct</artifactId>
@@ -121,19 +122,6 @@
                 </exclusion>
             </exclusions>
         </dependency>
-        <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
-            <version>${project.version}</version>
-            <type>pom</type>
-            <scope>test</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>*</groupId>
-                    <artifactId>*</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
     </dependencies>
 
     <build>
diff --git a/itests/camel-k-itests-knative/pom.xml b/itests/camel-k-itests-knative/pom.xml
index 4ecefe6..2633ebc 100644
--- a/itests/camel-k-itests-knative/pom.xml
+++ b/itests/camel-k-itests-knative/pom.xml
@@ -45,11 +45,12 @@
             <artifactId>camel-k-knative-consumer</artifactId>
         </dependency>
 
-        <!-- camel quarkus -->
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
+
+        <!-- camel quarkus -->
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
             <artifactId>camel-quarkus-direct</artifactId>
@@ -112,19 +113,6 @@
                 </exclusion>
             </exclusions>
         </dependency>
-        <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
-            <version>${project.version}</version>
-            <type>pom</type>
-            <scope>test</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>*</groupId>
-                    <artifactId>*</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
     </dependencies>
 
     <profiles>

[camel-k-runtime] 11/14: Fixed kamelet tests for Camel Quarkus 2.0.0 / Camel 3.10

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 29e7cc12629f743d6a08cff8e1cef8088847a1a4
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Wed Jun 2 09:52:20 2021 +0200

    Fixed kamelet tests for Camel Quarkus 2.0.0 / Camel 3.10
---
 itests/camel-k-itests-kamelet-reify/pom.xml | 21 ++++-----------------
 itests/camel-k-itests-kamelet/pom.xml       | 17 ++---------------
 2 files changed, 6 insertions(+), 32 deletions(-)

diff --git a/itests/camel-k-itests-kamelet-reify/pom.xml b/itests/camel-k-itests-kamelet-reify/pom.xml
index 2745910..8b16274 100644
--- a/itests/camel-k-itests-kamelet-reify/pom.xml
+++ b/itests/camel-k-itests-kamelet-reify/pom.xml
@@ -37,11 +37,12 @@
             <artifactId>camel-k-kamelet-reify</artifactId>
         </dependency>
 
-        <!-- camel quarkus -->
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
+
+        <!-- camel quarkus -->
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
             <artifactId>camel-quarkus-activemq</artifactId>
@@ -148,20 +149,6 @@
                 </exclusion>
             </exclusions>
         </dependency>
-        <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml-deployment</artifactId>
-            <version>${project.version}</version>
-            <type>pom</type>
-            <scope>test</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>*</groupId>
-                    <artifactId>*</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-
     </dependencies>
 
     <build>
diff --git a/itests/camel-k-itests-kamelet/pom.xml b/itests/camel-k-itests-kamelet/pom.xml
index 29dcb0f..883f8a3 100644
--- a/itests/camel-k-itests-kamelet/pom.xml
+++ b/itests/camel-k-itests-kamelet/pom.xml
@@ -34,8 +34,8 @@
         </dependency>
 
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
@@ -90,19 +90,6 @@
                 </exclusion>
             </exclusions>
         </dependency>
-        <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml-deployment</artifactId>
-            <version>${project.version}</version>
-            <type>pom</type>
-            <scope>test</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>*</groupId>
-                    <artifactId>*</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
     </dependencies>
 
     <build>

[camel-k-runtime] 14/14: Fixed checkstyle violations on kamelet reify tests

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit ec5d33266b068156de289943268d2b966af04dc1
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Wed Jun 2 12:11:48 2021 +0200

    Fixed checkstyle violations on kamelet reify tests
---
 .../camel/k/quarkus/kameletreify/KameletReifyTestResource.java       | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/itests/camel-k-itests-kamelet-reify/src/test/java/org/apache/camel/k/quarkus/kameletreify/KameletReifyTestResource.java b/itests/camel-k-itests-kamelet-reify/src/test/java/org/apache/camel/k/quarkus/kameletreify/KameletReifyTestResource.java
index aff3a9d..7b4f120 100644
--- a/itests/camel-k-itests-kamelet-reify/src/test/java/org/apache/camel/k/quarkus/kameletreify/KameletReifyTestResource.java
+++ b/itests/camel-k-itests-kamelet-reify/src/test/java/org/apache/camel/k/quarkus/kameletreify/KameletReifyTestResource.java
@@ -23,11 +23,10 @@ import com.github.dockerjava.api.model.Ulimit;
 import io.quarkus.test.common.QuarkusTestResourceLifecycleManager;
 import org.apache.camel.test.infra.artemis.services.ArtemisContainer;
 import org.apache.camel.test.infra.messaging.services.MessagingLocalContainerService;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
 import org.apache.camel.test.infra.messaging.services.MessagingService;
 import org.apache.camel.test.infra.messaging.services.MessagingServiceFactory;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 
 public class KameletReifyTestResource implements QuarkusTestResourceLifecycleManager {

[camel-k-runtime] 02/14: Fixed JS loader tests for Camel Quarkus 2.0.0 / Camel 3.10

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 2900a2dde93b8e7df6d0f5a1edd8e0fd4baebbe4
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Wed Jun 2 09:13:39 2021 +0200

    Fixed JS loader tests for Camel Quarkus 2.0.0 / Camel 3.10
---
 .../main/java/org/apache/camel/k/loader/js/quarkus/Application.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/itests/camel-k-itests-loader-js/src/main/java/org/apache/camel/k/loader/js/quarkus/Application.java b/itests/camel-k-itests-loader-js/src/main/java/org/apache/camel/k/loader/js/quarkus/Application.java
index ffc18f8..1ac548a 100644
--- a/itests/camel-k-itests-loader-js/src/main/java/org/apache/camel/k/loader/js/quarkus/Application.java
+++ b/itests/camel-k-itests-loader-js/src/main/java/org/apache/camel/k/loader/js/quarkus/Application.java
@@ -19,6 +19,7 @@ package org.apache.camel.k.loader.js.quarkus;
 import javax.enterprise.context.ApplicationScoped;
 import javax.inject.Inject;
 import javax.json.JsonObject;
+import javax.ws.rs.Consumes;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
@@ -26,7 +27,6 @@ import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 
 import org.apache.camel.CamelContext;
-import org.apache.camel.Consume;
 import org.apache.camel.k.loader.support.LoaderSupport;
 
 @Path("/test")
@@ -37,7 +37,7 @@ public class Application {
 
     @POST
     @Path("/load-routes/{name}")
-    @Consume(MediaType.TEXT_PLAIN)
+    @Consumes(MediaType.TEXT_PLAIN)
     @Produces(MediaType.APPLICATION_JSON)
     public JsonObject loadRoutes(@PathParam("name") String name, String code) throws Exception {
         return LoaderSupport.inspectSource(context, name + ".js", code);

[camel-k-runtime] 13/14: Fixed examples for Camel Quarkus 2.0.0 / Camel 3.10

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 6f8551c1b775db90502d013b8f7bc182f89d9533
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Wed Jun 2 09:59:30 2021 +0200

    Fixed examples for Camel Quarkus 2.0.0 / Camel 3.10
---
 examples/cron/pom.xml     | 4 ++--
 examples/groovy/pom.xml   | 4 ++--
 examples/kamelets/pom.xml | 4 ++--
 examples/knative/pom.xml  | 4 ++--
 examples/yaml/pom.xml     | 4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/examples/cron/pom.xml b/examples/cron/pom.xml
index 9f12d81..5a0c22f 100644
--- a/examples/cron/pom.xml
+++ b/examples/cron/pom.xml
@@ -44,8 +44,8 @@
         </dependency>
 
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
diff --git a/examples/groovy/pom.xml b/examples/groovy/pom.xml
index e22d5de..99cb800 100644
--- a/examples/groovy/pom.xml
+++ b/examples/groovy/pom.xml
@@ -40,8 +40,8 @@
         </dependency>
 
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-groovy</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-groovy-dsl</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
diff --git a/examples/kamelets/pom.xml b/examples/kamelets/pom.xml
index 25e7815..89cd33c 100644
--- a/examples/kamelets/pom.xml
+++ b/examples/kamelets/pom.xml
@@ -39,8 +39,8 @@
             <artifactId>camel-k-runtime</artifactId>
         </dependency>
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
diff --git a/examples/knative/pom.xml b/examples/knative/pom.xml
index 46b26cc..80ea159 100644
--- a/examples/knative/pom.xml
+++ b/examples/knative/pom.xml
@@ -47,8 +47,8 @@
             <artifactId>camel-k-knative-consumer</artifactId>
         </dependency>
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
diff --git a/examples/yaml/pom.xml b/examples/yaml/pom.xml
index d482335..9ec76f3 100644
--- a/examples/yaml/pom.xml
+++ b/examples/yaml/pom.xml
@@ -39,8 +39,8 @@
             <artifactId>camel-k-runtime</artifactId>
         </dependency>
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>

[camel-k-runtime] 12/14: Fixed webhook tests for Camel Quarkus 2.0.0 / Camel 3.10

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 0734e7dbe856b0542394307daded61a798ab7dd2
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Wed Jun 2 09:58:04 2021 +0200

    Fixed webhook tests for Camel Quarkus 2.0.0 / Camel 3.10
---
 itests/camel-k-itests-webhook/pom.xml | 20 ++++----------------
 1 file changed, 4 insertions(+), 16 deletions(-)

diff --git a/itests/camel-k-itests-webhook/pom.xml b/itests/camel-k-itests-webhook/pom.xml
index ca10434..3d585b0 100644
--- a/itests/camel-k-itests-webhook/pom.xml
+++ b/itests/camel-k-itests-webhook/pom.xml
@@ -37,11 +37,12 @@
             <artifactId>camel-k-webhook</artifactId>
         </dependency>
 
-        <!-- camel quarkus -->
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
+
+        <!-- camel quarkus -->
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
             <artifactId>camel-quarkus-timer</artifactId>
@@ -117,19 +118,6 @@
         </dependency>
         <dependency>
             <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml-deployment</artifactId>
-            <version>${project.version}</version>
-            <type>pom</type>
-            <scope>test</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>*</groupId>
-                    <artifactId>*</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.camel.k</groupId>
             <artifactId>camel-k-cron-deployment</artifactId>
             <version>${project.version}</version>
             <type>pom</type>

[camel-k-runtime] 08/14: Fixed runtime tests for Camel Quarkus 2.0.0 / Camel 3.10

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 9e75752fc63323142ae30824108adfad9804b64e
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Wed Jun 2 09:24:25 2021 +0200

    Fixed runtime tests for Camel Quarkus 2.0.0 / Camel 3.10
---
 itests/camel-k-itests-runtime-yaml/pom.xml | 17 ++---------------
 itests/camel-k-itests-runtime/pom.xml      |  6 +++---
 2 files changed, 5 insertions(+), 18 deletions(-)

diff --git a/itests/camel-k-itests-runtime-yaml/pom.xml b/itests/camel-k-itests-runtime-yaml/pom.xml
index c3f931c..67edea4 100644
--- a/itests/camel-k-itests-runtime-yaml/pom.xml
+++ b/itests/camel-k-itests-runtime-yaml/pom.xml
@@ -50,8 +50,8 @@
         </dependency>
 
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml</artifactId>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-yaml-dsl</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
@@ -120,19 +120,6 @@
         </dependency>
         <dependency>
             <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-yaml-deployment</artifactId>
-            <version>${project.version}</version>
-            <type>pom</type>
-            <scope>test</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>*</groupId>
-                    <artifactId>*</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.camel.k</groupId>
             <artifactId>camel-k-knative-deployment</artifactId>
             <version>${project.version}</version>
             <type>pom</type>
diff --git a/itests/camel-k-itests-runtime/pom.xml b/itests/camel-k-itests-runtime/pom.xml
index 32e2652..268f0c7 100644
--- a/itests/camel-k-itests-runtime/pom.xml
+++ b/itests/camel-k-itests-runtime/pom.xml
@@ -78,9 +78,9 @@
             </exclusions>
         </dependency>
         <dependency>
-            <groupId>org.apache.camel.k</groupId>
-            <artifactId>camel-k-loader-groovy-deployment</artifactId>
-            <version>${project.version}</version>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-groovy-dsl</artifactId>
+            <version>${camel-version}</version>
             <type>pom</type>
             <scope>test</scope>
             <exclusions>

[camel-k-runtime] 03/14: Fixed jsh loader tests for Camel Quarkus 2.0.0 / Camel 3.10

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit e2372630c77fe52037ef313df8ffd808924c7df0
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Wed Jun 2 09:14:14 2021 +0200

    Fixed jsh loader tests for Camel Quarkus 2.0.0 / Camel 3.10
---
 .../java/org/apache/camel/k/loader/jsh/quarkus/JshApplication.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/itests/camel-k-itests-loader-jsh/src/main/java/org/apache/camel/k/loader/jsh/quarkus/JshApplication.java b/itests/camel-k-itests-loader-jsh/src/main/java/org/apache/camel/k/loader/jsh/quarkus/JshApplication.java
index dd8dd9f..fa9dfbf 100644
--- a/itests/camel-k-itests-loader-jsh/src/main/java/org/apache/camel/k/loader/jsh/quarkus/JshApplication.java
+++ b/itests/camel-k-itests-loader-jsh/src/main/java/org/apache/camel/k/loader/jsh/quarkus/JshApplication.java
@@ -19,6 +19,7 @@ package org.apache.camel.k.loader.jsh.quarkus;
 import javax.enterprise.context.ApplicationScoped;
 import javax.inject.Inject;
 import javax.json.JsonObject;
+import javax.ws.rs.Consumes;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
@@ -26,7 +27,6 @@ import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 
 import org.apache.camel.CamelContext;
-import org.apache.camel.Consume;
 import org.apache.camel.k.loader.support.LoaderSupport;
 
 @Path("/test")
@@ -37,7 +37,7 @@ public class JshApplication {
 
     @POST
     @Path("/load-routes/{name}")
-    @Consume(MediaType.TEXT_PLAIN)
+    @Consumes(MediaType.TEXT_PLAIN)
     @Produces(MediaType.APPLICATION_JSON)
     public JsonObject loadRoutes(@PathParam("name") String name, String code) throws Exception {
         return LoaderSupport.inspectSource(context, name + ".jsh", code);

[camel-k-runtime] 05/14: Fixed XML loader tests for Camel Quarkus 2.0.0 / Camel 3.10

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 150429b4b4068b5557b4042dd8f3f1f2e04499e3
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Wed Jun 2 09:14:35 2021 +0200

    Fixed XML loader tests for Camel Quarkus 2.0.0 / Camel 3.10
---
 .../main/java/org/apache/camel/k/loader/xml/quarkus/Application.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/itests/camel-k-itests-loader-xml/src/main/java/org/apache/camel/k/loader/xml/quarkus/Application.java b/itests/camel-k-itests-loader-xml/src/main/java/org/apache/camel/k/loader/xml/quarkus/Application.java
index 3f17aa8..087174b 100644
--- a/itests/camel-k-itests-loader-xml/src/main/java/org/apache/camel/k/loader/xml/quarkus/Application.java
+++ b/itests/camel-k-itests-loader-xml/src/main/java/org/apache/camel/k/loader/xml/quarkus/Application.java
@@ -19,6 +19,7 @@ package org.apache.camel.k.loader.xml.quarkus;
 import javax.enterprise.context.ApplicationScoped;
 import javax.inject.Inject;
 import javax.json.JsonObject;
+import javax.ws.rs.Consumes;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
@@ -26,7 +27,6 @@ import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 
 import org.apache.camel.CamelContext;
-import org.apache.camel.Consume;
 import org.apache.camel.k.loader.support.LoaderSupport;
 
 @Path("/test")
@@ -37,7 +37,7 @@ public class Application {
 
     @POST
     @Path("/load-routes/{name}")
-    @Consume(MediaType.TEXT_PLAIN)
+    @Consumes(MediaType.TEXT_PLAIN)
     @Produces(MediaType.APPLICATION_JSON)
     public JsonObject loadRoutes(@PathParam("name") String name, String code) throws Exception {
         return LoaderSupport.inspectSource(context, name + ".xml", code);

[camel-k-runtime] 07/14: Fixed Kotlin loader tests for Camel Quarkus 2.0.0 / Camel 3.10

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 5d29ede05b8f2693a624fcc0524f8a712ce7ae91
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Wed Jun 2 09:24:10 2021 +0200

    Fixed Kotlin loader tests for Camel Quarkus 2.0.0 / Camel 3.10
---
 .../java/org/apache/camel/k/loader/kotlin/quarkus/Application.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/itests/camel-k-itests-loader-kotlin/src/main/java/org/apache/camel/k/loader/kotlin/quarkus/Application.java b/itests/camel-k-itests-loader-kotlin/src/main/java/org/apache/camel/k/loader/kotlin/quarkus/Application.java
index 575992c..f542080 100644
--- a/itests/camel-k-itests-loader-kotlin/src/main/java/org/apache/camel/k/loader/kotlin/quarkus/Application.java
+++ b/itests/camel-k-itests-loader-kotlin/src/main/java/org/apache/camel/k/loader/kotlin/quarkus/Application.java
@@ -19,6 +19,7 @@ package org.apache.camel.k.loader.kotlin.quarkus;
 import javax.enterprise.context.ApplicationScoped;
 import javax.inject.Inject;
 import javax.json.JsonObject;
+import javax.ws.rs.Consumes;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
@@ -26,7 +27,6 @@ import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 
 import org.apache.camel.CamelContext;
-import org.apache.camel.Consume;
 import org.apache.camel.k.loader.support.LoaderSupport;
 
 @Path("/test")
@@ -37,7 +37,7 @@ public class Application {
 
     @POST
     @Path("/load-routes/{name}")
-    @Consume(MediaType.TEXT_PLAIN)
+    @Consumes(MediaType.TEXT_PLAIN)
     @Produces(MediaType.APPLICATION_JSON)
     public JsonObject loadRoutes(@PathParam("name") String name, String code) throws Exception {
         return LoaderSupport.inspectSource(context, name + ".kts", code);