This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new 6a5abae88a Add JQ extension
6a5abae88a is described below
commit 6a5abae88a9e8278d5286fbc2be3e41ff8ee2e12
Author: James Netherton <[email protected]>
AuthorDate: Thu Jul 7 12:57:10 2022 +0100
Add JQ extension
Fixes #3835
---
docs/modules/ROOT/examples/languages/jq.yml | 13 ++
docs/modules/ROOT/nav.adoc | 1 +
.../ROOT/pages/reference/extensions/jq.adoc | 71 +++++++++
extensions/jq/deployment/pom.xml | 71 +++++++++
.../component/jq/deployment/JqProcessor.java | 47 ++++++
extensions/jq/pom.xml | 39 +++++
extensions/jq/runtime/pom.xml | 109 ++++++++++++++
extensions/jq/runtime/src/main/doc/usage.adoc | 28 ++++
.../quarkus/component/jq/CamelJqRecorder.java | 35 +++++
.../main/resources/META-INF/quarkus-extension.yaml | 31 ++++
extensions/pom.xml | 1 +
integration-tests/jq/pom.xml | 146 +++++++++++++++++++
.../apache/camel/quarkus/component/jq/it/Book.java | 68 +++++++++
.../camel/quarkus/component/jq/it/JqResource.java | 158 +++++++++++++++++++++
.../camel/quarkus/component/jq/it/JqRoutes.java | 58 ++++++++
.../jq/src/main/resources/application.properties | 18 +++
.../apache/camel/quarkus/component/jq/it/JqIT.java | 24 ++++
.../camel/quarkus/component/jq/it/JqTest.java | 89 ++++++++++++
integration-tests/pom.xml | 1 +
pom.xml | 1 +
poms/bom/pom.xml | 25 ++++
poms/bom/src/main/generated/flattened-full-pom.xml | 25 ++++
.../src/main/generated/flattened-reduced-pom.xml | 25 ++++
.../generated/flattened-reduced-verbose-pom.xml | 25 ++++
tooling/scripts/test-categories.yaml | 1 +
25 files changed, 1110 insertions(+)
diff --git a/docs/modules/ROOT/examples/languages/jq.yml
b/docs/modules/ROOT/examples/languages/jq.yml
new file mode 100644
index 0000000000..98155f262b
--- /dev/null
+++ b/docs/modules/ROOT/examples/languages/jq.yml
@@ -0,0 +1,13 @@
+# Do not edit directly!
+# This file was generated by
camel-quarkus-maven-plugin:update-extension-doc-page
+cqArtifactId: camel-quarkus-jq
+cqArtifactIdBase: jq
+cqNativeSupported: true
+cqStatus: Stable
+cqDeprecated: false
+cqJvmSince: 2.11.0
+cqNativeSince: 2.11.0
+cqCamelPartName: jq
+cqCamelPartTitle: JQ
+cqCamelPartDescription: Evaluates a JQ expression against a JSON message body.
+cqExtensionPageTitle: JQ
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 05380b3c99..f71f6b9b75 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -165,6 +165,7 @@
*** xref:reference/extensions/jolt.adoc[JOLT]
*** xref:reference/extensions/jooq.adoc[JOOQ]
*** xref:reference/extensions/jpa.adoc[JPA]
+*** xref:reference/extensions/jq.adoc[JQ]
*** xref:reference/extensions/jslt.adoc[JSLT]
*** xref:reference/extensions/fastjson.adoc[JSON Fastjson]
*** xref:reference/extensions/jsonpath.adoc[JSON Path]
diff --git a/docs/modules/ROOT/pages/reference/extensions/jq.adoc
b/docs/modules/ROOT/pages/reference/extensions/jq.adoc
new file mode 100644
index 0000000000..c719302f63
--- /dev/null
+++ b/docs/modules/ROOT/pages/reference/extensions/jq.adoc
@@ -0,0 +1,71 @@
+// Do not edit directly!
+// This file was generated by
camel-quarkus-maven-plugin:update-extension-doc-page
+= JQ
+:linkattrs:
+:cq-artifact-id: camel-quarkus-jq
+:cq-native-supported: true
+:cq-status: Stable
+:cq-status-deprecation: Stable
+:cq-description: Evaluates a JQ expression against a JSON message body.
+:cq-deprecated: false
+:cq-jvm-since: 2.11.0
+:cq-native-since: 2.11.0
+
+[.badges]
+[.badge-key]##JVM since##[.badge-supported]##2.11.0## [.badge-key]##Native
since##[.badge-supported]##2.11.0##
+
+Evaluates a JQ expression against a JSON message body.
+
+== What's inside
+
+* xref:{cq-camel-components}:languages:jq-language.adoc[JQ language]
+
+Please refer to the above link for usage and configuration details.
+
+== Maven coordinates
+
+https://code.quarkus.io/?extension-search=camel-quarkus-jq[Create a new
project with this extension on code.quarkus.io, window="_blank"]
+
+Or add the coordinates to your existing project:
+
+[source,xml]
+----
+<dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-jq</artifactId>
+</dependency>
+----
+
+Check the xref:user-guide/index.adoc[User guide] for more information about
writing Camel Quarkus applications.
+
+== Usage
+
+=== JQ transformations to custom result types in native mode
+
+If you choose to perform JQ transformations that specify the result class as
some custom type in native mode,
+then you must register that type for reflection.
+
+E.g via the `@RegisterForReflection`
+annotation or configuration property
`quarkus.camel.native.reflection.include-patterns`. For example:
+
+[source,java]
+----
+@RegisterForReflection
+public class Book {
+ ...
+}
+----
+
+[source,java]
+----
+public class MyJQRoutes extends RouteBuilder {
+ @Override
+ public void configure() {
+ from("direct:jq")
+ .transform().jq(".book", Book.class);
+ }
+}
+----
+
+Refer to the xref:user-guide/native-mode.adoc#reflection[Native mode] user
guide for more information.
+
diff --git a/extensions/jq/deployment/pom.xml b/extensions/jq/deployment/pom.xml
new file mode 100644
index 0000000000..5f051f2b94
--- /dev/null
+++ b/extensions/jq/deployment/pom.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-jq-parent</artifactId>
+ <version>2.11.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>camel-quarkus-jq-deployment</artifactId>
+ <name>Camel Quarkus :: JQ :: Deployment</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>io.quarkiverse.jackson-jq</groupId>
+ <artifactId>quarkus-jackson-jq-deployment</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-core-deployment</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-jackson-deployment</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-jq</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <annotationProcessorPaths>
+ <path>
+ <groupId>io.quarkus</groupId>
+
<artifactId>quarkus-extension-processor</artifactId>
+ <version>${quarkus.version}</version>
+ </path>
+ </annotationProcessorPaths>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git
a/extensions/jq/deployment/src/main/java/org/apache/camel/quarkus/component/jq/deployment/JqProcessor.java
b/extensions/jq/deployment/src/main/java/org/apache/camel/quarkus/component/jq/deployment/JqProcessor.java
new file mode 100644
index 0000000000..7da36e17f0
--- /dev/null
+++
b/extensions/jq/deployment/src/main/java/org/apache/camel/quarkus/component/jq/deployment/JqProcessor.java
@@ -0,0 +1,47 @@
+/*
+ * 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.quarkus.component.jq.deployment;
+
+import io.quarkus.arc.deployment.BeanContainerBuildItem;
+import io.quarkus.arc.deployment.UnremovableBeanBuildItem;
+import io.quarkus.deployment.annotations.BuildStep;
+import io.quarkus.deployment.annotations.ExecutionTime;
+import io.quarkus.deployment.annotations.Record;
+import io.quarkus.deployment.builditem.FeatureBuildItem;
+import net.thisptr.jackson.jq.Scope;
+import org.apache.camel.quarkus.component.jq.CamelJqRecorder;
+
+class JqProcessor {
+
+ private static final String FEATURE = "camel-jq";
+
+ @BuildStep
+ FeatureBuildItem feature() {
+ return new FeatureBuildItem(FEATURE);
+ }
+
+ @BuildStep
+ UnremovableBeanBuildItem unremovableBeans() {
+ return UnremovableBeanBuildItem.beanTypes(Scope.class);
+ }
+
+ @Record(ExecutionTime.STATIC_INIT)
+ @BuildStep
+ void addCamelFunctionsToScope(BeanContainerBuildItem beanContainer,
CamelJqRecorder recorder) {
+ recorder.addCamelFunctionsToScope(beanContainer.getValue());
+ }
+}
diff --git a/extensions/jq/pom.xml b/extensions/jq/pom.xml
new file mode 100644
index 0000000000..bd4cd1c061
--- /dev/null
+++ b/extensions/jq/pom.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-extensions</artifactId>
+ <version>2.11.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>camel-quarkus-jq-parent</artifactId>
+ <name>Camel Quarkus :: JQ</name>
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>deployment</module>
+ <module>runtime</module>
+ </modules>
+</project>
diff --git a/extensions/jq/runtime/pom.xml b/extensions/jq/runtime/pom.xml
new file mode 100644
index 0000000000..0dab57dc15
--- /dev/null
+++ b/extensions/jq/runtime/pom.xml
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-jq-parent</artifactId>
+ <version>2.11.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>camel-quarkus-jq</artifactId>
+ <name>Camel Quarkus :: JQ :: Runtime</name>
+ <description>Evaluates a JQ expression against a JSON message
body.</description>
+
+ <properties>
+ <camel.quarkus.jvmSince>2.11.0</camel.quarkus.jvmSince>
+ <camel.quarkus.nativeSince>2.11.0</camel.quarkus.nativeSince>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>io.quarkiverse.jackson-jq</groupId>
+ <artifactId>quarkus-jackson-jq</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-jackson</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-jq</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-extension-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <annotationProcessorPaths>
+ <path>
+ <groupId>io.quarkus</groupId>
+
<artifactId>quarkus-extension-processor</artifactId>
+ <version>${quarkus.version}</version>
+ </path>
+ </annotationProcessorPaths>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+
+ <profiles>
+ <profile>
+ <id>full</id>
+ <activation>
+ <property>
+ <name>!quickly</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>update-extension-doc-page</id>
+ <goals>
+ <goal>update-extension-doc-page</goal>
+ </goals>
+ <phase>process-classes</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
diff --git a/extensions/jq/runtime/src/main/doc/usage.adoc
b/extensions/jq/runtime/src/main/doc/usage.adoc
new file mode 100644
index 0000000000..e58a5b3f94
--- /dev/null
+++ b/extensions/jq/runtime/src/main/doc/usage.adoc
@@ -0,0 +1,28 @@
+=== JQ transformations to custom result types in native mode
+
+If you choose to perform JQ transformations that specify the result class as
some custom type in native mode,
+then you must register that type for reflection.
+
+E.g via the `@RegisterForReflection`
+annotation or configuration property
`quarkus.camel.native.reflection.include-patterns`. For example:
+
+[source,java]
+----
+@RegisterForReflection
+public class Book {
+ ...
+}
+----
+
+[source,java]
+----
+public class MyJQRoutes extends RouteBuilder {
+ @Override
+ public void configure() {
+ from("direct:jq")
+ .transform().jq(".book", Book.class);
+ }
+}
+----
+
+Refer to the xref:user-guide/native-mode.adoc#reflection[Native mode] user
guide for more information.
\ No newline at end of file
diff --git
a/extensions/jq/runtime/src/main/java/org/apache/camel/quarkus/component/jq/CamelJqRecorder.java
b/extensions/jq/runtime/src/main/java/org/apache/camel/quarkus/component/jq/CamelJqRecorder.java
new file mode 100644
index 0000000000..4003d13951
--- /dev/null
+++
b/extensions/jq/runtime/src/main/java/org/apache/camel/quarkus/component/jq/CamelJqRecorder.java
@@ -0,0 +1,35 @@
+/*
+ * 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.quarkus.component.jq;
+
+import io.quarkus.arc.runtime.BeanContainer;
+import io.quarkus.runtime.annotations.Recorder;
+import net.thisptr.jackson.jq.Scope;
+import org.apache.camel.language.jq.JqFunctions;
+
+@Recorder
+public class CamelJqRecorder {
+
+ public void addCamelFunctionsToScope(BeanContainer beanContainer) {
+ Scope scope = beanContainer.instance(Scope.class);
+ if (scope != null) {
+ JqFunctions.loadLocal(scope);
+ } else {
+ throw new IllegalStateException("Scope bean could not be resolved.
Unable to load Camel JQ functions.");
+ }
+ }
+}
diff --git
a/extensions/jq/runtime/src/main/resources/META-INF/quarkus-extension.yaml
b/extensions/jq/runtime/src/main/resources/META-INF/quarkus-extension.yaml
new file mode 100644
index 0000000000..34f2d45d23
--- /dev/null
+++ b/extensions/jq/runtime/src/main/resources/META-INF/quarkus-extension.yaml
@@ -0,0 +1,31 @@
+#
+# 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.
+#
+
+# This is a generated file. Do not edit directly!
+# To re-generate, run the following command from the top level directory:
+#
+# mvn -N cq:update-quarkus-metadata
+#
+---
+name: "Camel JQ"
+description: "Evaluates a JQ expression against a JSON message body"
+metadata:
+ guide:
"https://camel.apache.org/camel-quarkus/latest/reference/extensions/jq.html"
+ categories:
+ - "integration"
+ status:
+ - "stable"
diff --git a/extensions/pom.xml b/extensions/pom.xml
index 64d77a1b9d..77d0e3810a 100644
--- a/extensions/pom.xml
+++ b/extensions/pom.xml
@@ -135,6 +135,7 @@
<module>johnzon</module>
<module>jolt</module>
<module>jpa</module>
+ <module>jq</module>
<module>js-dsl</module>
<module>jsch</module>
<module>jslt</module>
diff --git a/integration-tests/jq/pom.xml b/integration-tests/jq/pom.xml
new file mode 100644
index 0000000000..f610ece716
--- /dev/null
+++ b/integration-tests/jq/pom.xml
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-build-parent-it</artifactId>
+ <version>2.11.0-SNAPSHOT</version>
+ <relativePath>../../poms/build-parent-it/pom.xml</relativePath>
+ </parent>
+
+ <artifactId>camel-quarkus-integration-test-jq</artifactId>
+ <name>Camel Quarkus :: Integration Tests :: JQ</name>
+ <description>Integration tests for Camel Quarkus JQ extension</description>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-direct</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-jq</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-mock</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-resteasy</artifactId>
+ </dependency>
+
+ <!-- test dependencies -->
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-junit5</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>io.rest-assured</groupId>
+ <artifactId>rest-assured</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <profiles>
+ <profile>
+ <id>native</id>
+ <activation>
+ <property>
+ <name>native</name>
+ </property>
+ </activation>
+ <properties>
+ <quarkus.package.type>native</quarkus.package.type>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>integration-test</goal>
+ <goal>verify</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>virtualDependencies</id>
+ <activation>
+ <property>
+ <name>!noVirtualDependencies</name>
+ </property>
+ </activation>
+ <dependencies>
+ <!-- The following dependencies guarantee that this module is
built after them. You can update them by running `mvn process-resources
-Pformat -N` from the source tree root directory -->
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-direct-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.quarkus</groupId>
+ <artifactId>camel-quarkus-jq-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.quarkus</groupId>
+ <artifactId>camel-quarkus-mock-deployment</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>*</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+
+</project>
diff --git
a/integration-tests/jq/src/main/java/org/apache/camel/quarkus/component/jq/it/Book.java
b/integration-tests/jq/src/main/java/org/apache/camel/quarkus/component/jq/it/Book.java
new file mode 100644
index 0000000000..2400faea27
--- /dev/null
+++
b/integration-tests/jq/src/main/java/org/apache/camel/quarkus/component/jq/it/Book.java
@@ -0,0 +1,68 @@
+/*
+ * 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.quarkus.component.jq.it;
+
+import java.util.Objects;
+
+import io.quarkus.runtime.annotations.RegisterForReflection;
+
+@RegisterForReflection(fields = false)
+public class Book {
+ private String author;
+ private String title;
+
+ public Book() {
+ }
+
+ public Book(String author, String title) {
+ this.author = author;
+ this.title = title;
+ }
+
+ public String getAuthor() {
+ return author;
+ }
+
+ public void setAuthor(String author) {
+ this.author = author;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof Book)) {
+ return false;
+ }
+ Book book = (Book) o;
+ return Objects.equals(getAuthor(), book.getAuthor()) &&
Objects.equals(getTitle(), book.getTitle());
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(getAuthor(), getTitle());
+ }
+}
diff --git
a/integration-tests/jq/src/main/java/org/apache/camel/quarkus/component/jq/it/JqResource.java
b/integration-tests/jq/src/main/java/org/apache/camel/quarkus/component/jq/it/JqResource.java
new file mode 100644
index 0000000000..3497a8ee2a
--- /dev/null
+++
b/integration-tests/jq/src/main/java/org/apache/camel/quarkus/component/jq/it/JqResource.java
@@ -0,0 +1,158 @@
+/*
+ * 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.quarkus.component.jq.it;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.inject.Inject;
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.node.ObjectNode;
+import com.fasterxml.jackson.databind.node.TextNode;
+import org.apache.camel.CamelContext;
+import org.apache.camel.Exchange;
+import org.apache.camel.Processor;
+import org.apache.camel.ProducerTemplate;
+import org.apache.camel.component.mock.MockEndpoint;
+
+@Path("/jq")
+@ApplicationScoped
+public class JqResource {
+ @Inject
+ ProducerTemplate producerTemplate;
+ @Inject
+ CamelContext context;
+ @Inject
+ ObjectMapper mapper;
+
+ @Path("/expression")
+ @GET
+ public void expression() throws Exception {
+ MockEndpoint endpoint = context.getEndpoint("mock:expression",
MockEndpoint.class);
+ endpoint.expectedBodiesReceived(new TextNode("bar"));
+
+ ObjectNode node = mapper.createObjectNode()
+ .put("foo", "bar")
+ .put("baz", "bar");
+
+ producerTemplate.sendBody("direct:expression", node.put("value",
"valid"));
+
+ endpoint.assertIsSatisfied(5000);
+ }
+
+ @Path("/expression/header")
+ @GET
+ public void expressionHeader() throws Exception {
+ MockEndpoint endpoint = context.getEndpoint("mock:expressionHeader",
MockEndpoint.class);
+ TextNode expected = new TextNode("bar");
+ endpoint.expectedBodiesReceived(expected);
+
+ ObjectNode node = mapper.createObjectNode().put("foo", "bar");
+ producerTemplate.sendBodyAndHeader("direct:expressionHeader", null,
"Content", node);
+
+ endpoint.assertIsSatisfied(5000);
+ }
+
+ @Path("/expression/header/function")
+ @GET
+ public void expressionHeaderFunction() throws Exception {
+ MockEndpoint endpoint =
context.getEndpoint("mock:expressionHeaderFunction", MockEndpoint.class);
+ ObjectNode expected = mapper.createObjectNode().put("foo", "MyValue");
+ endpoint.expectedBodiesReceived(expected);
+
+ ObjectNode node = mapper.createObjectNode().put("foo", "bar");
+ producerTemplate.sendBodyAndHeader("direct:expressionHeaderFunction",
node, "MyHeader", "MyValue");
+
+ endpoint.assertIsSatisfied(5000);
+ }
+
+ @Path("/expression/header/string")
+ @GET
+ public void expressionHeaderString() throws Exception {
+ MockEndpoint endpoint =
context.getEndpoint("mock:expressionHeaderString", MockEndpoint.class);
+ endpoint.expectedBodiesReceived("bar");
+
+ ObjectNode node = mapper.createObjectNode().put("foo", "bar");
+ producerTemplate.sendBodyAndHeader("direct:expressionHeaderString",
null, "Content", node);
+
+ endpoint.assertIsSatisfied(5000);
+ }
+
+ @Path("/expression/pojo")
+ @GET
+ public void expressionPojo() throws Exception {
+ MockEndpoint endpoint = context.getEndpoint("mock:expressionPojo",
MockEndpoint.class);
+ endpoint.expectedBodiesReceived(new Book("foo", "bar"));
+
+ ObjectNode node = mapper.createObjectNode();
+ node.with("book").put("author", "foo").put("title", "bar");
+
+ producerTemplate.sendBody("direct:expressionPojo", node);
+
+ endpoint.assertIsSatisfied(5000);
+ }
+
+ @Path("/expression/property")
+ @GET
+ public void expressionProperty() throws Exception {
+ MockEndpoint endpoint = context.getEndpoint("mock:expressionProperty",
MockEndpoint.class);
+ endpoint.expectedMessageCount(1);
+
+ ObjectNode node = mapper.createObjectNode().put("foo", "bar");
+
+ producerTemplate.send("direct:expressionProperty", new Processor() {
+ @Override
+ public void process(Exchange exchange) throws Exception {
+ exchange.setProperty("Content", node);
+ }
+ });
+
+ endpoint.assertIsSatisfied(5000);
+ }
+
+ @Path("/expression/property/function")
+ @GET
+ public void expressionPropertyFunction() throws Exception {
+ ObjectNode node = mapper.createObjectNode().put("foo",
"MyPropertyValue");
+ MockEndpoint endpoint =
context.getEndpoint("mock:expressionPropertyFunction", MockEndpoint.class);
+ endpoint.expectedBodiesReceived(node);
+
+ producerTemplate.send("direct:expressionPropertyFunction", new
Processor() {
+ @Override
+ public void process(Exchange exchange) throws Exception {
+ exchange.setProperty("MyProperty", "MyPropertyValue");
+
exchange.getMessage().setBody(mapper.createObjectNode().put("foo", "bar"));
+ }
+ });
+
+ endpoint.assertIsSatisfied(5000);
+ }
+
+ @Path("/filter")
+ @GET
+ public void filter() throws Exception {
+ MockEndpoint endpoint = context.getEndpoint("mock:filter",
MockEndpoint.class);
+ ObjectNode expected = mapper.createObjectNode().put("value", "valid");
+ endpoint.expectedBodiesReceived(expected);
+
+ producerTemplate.sendBody("direct:filter",
mapper.createObjectNode().put("value", "valid"));
+ producerTemplate.sendBody("direct:filter",
mapper.createObjectNode().put("value", "invalid"));
+
+ endpoint.assertIsSatisfied(5000);
+ }
+}
diff --git
a/integration-tests/jq/src/main/java/org/apache/camel/quarkus/component/jq/it/JqRoutes.java
b/integration-tests/jq/src/main/java/org/apache/camel/quarkus/component/jq/it/JqRoutes.java
new file mode 100644
index 0000000000..18589c84f8
--- /dev/null
+++
b/integration-tests/jq/src/main/java/org/apache/camel/quarkus/component/jq/it/JqRoutes.java
@@ -0,0 +1,58 @@
+/*
+ * 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.quarkus.component.jq.it;
+
+import org.apache.camel.builder.RouteBuilder;
+
+public class JqRoutes extends RouteBuilder {
+
+ @Override
+ public void configure() throws Exception {
+ from("direct:expression")
+ .transform().jq(".foo")
+ .to("mock:expression");
+
+ from("direct:expressionHeader")
+ .transform().jq(".foo", "Content")
+ .to("mock:expressionHeader");
+
+ from("direct:expressionHeaderFunction")
+ .transform().jq(".foo = header(\"MyHeader\")")
+ .to("mock:expressionHeaderFunction");
+
+ from("direct:expressionHeaderString")
+ .transform().jq(".foo", String.class, "Content")
+ .to("mock:expressionHeaderString");
+
+ from("direct:expressionPojo")
+ .transform().jq(".book", Book.class)
+ .to("mock:expressionPojo");
+
+ from("direct:expressionProperty")
+ .transform().jq(".foo", "Content")
+ .to("mock:expressionProperty");
+
+ from("direct:expressionPropertyFunction")
+ .transform().jq(".foo = property(\"MyProperty\")")
+ .to("mock:expressionPropertyFunction");
+
+ from("direct:filter")
+ .filter().jq(".value == \"valid\"")
+ .to("mock:filter");
+
+ }
+}
diff --git a/integration-tests/jq/src/main/resources/application.properties
b/integration-tests/jq/src/main/resources/application.properties
new file mode 100644
index 0000000000..26d93d354f
--- /dev/null
+++ b/integration-tests/jq/src/main/resources/application.properties
@@ -0,0 +1,18 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+camel.context.global-options[CamelJacksonEnableTypeConverter] = true
+camel.context.global-options[CamelJacksonTypeConverterToPojo] = true
diff --git
a/integration-tests/jq/src/test/java/org/apache/camel/quarkus/component/jq/it/JqIT.java
b/integration-tests/jq/src/test/java/org/apache/camel/quarkus/component/jq/it/JqIT.java
new file mode 100644
index 0000000000..a6645b98e4
--- /dev/null
+++
b/integration-tests/jq/src/test/java/org/apache/camel/quarkus/component/jq/it/JqIT.java
@@ -0,0 +1,24 @@
+/*
+ * 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.quarkus.component.jq.it;
+
+import io.quarkus.test.junit.QuarkusIntegrationTest;
+
+@QuarkusIntegrationTest
+class JqIT extends JqTest {
+
+}
diff --git
a/integration-tests/jq/src/test/java/org/apache/camel/quarkus/component/jq/it/JqTest.java
b/integration-tests/jq/src/test/java/org/apache/camel/quarkus/component/jq/it/JqTest.java
new file mode 100644
index 0000000000..68c3cecd0c
--- /dev/null
+++
b/integration-tests/jq/src/test/java/org/apache/camel/quarkus/component/jq/it/JqTest.java
@@ -0,0 +1,89 @@
+/*
+ * 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.quarkus.component.jq.it;
+
+import io.quarkus.test.junit.QuarkusTest;
+import io.restassured.RestAssured;
+import org.junit.jupiter.api.Test;
+
+@QuarkusTest
+class JqTest {
+
+ @Test
+ public void filter() {
+ RestAssured.given()
+ .get("/jq/filter")
+ .then()
+ .statusCode(204);
+ }
+
+ @Test
+ public void expression() {
+ RestAssured.given()
+ .get("/jq/expression")
+ .then()
+ .statusCode(204);
+ }
+
+ @Test
+ public void expressionHeader() {
+ RestAssured.given()
+ .get("/jq/expression/header")
+ .then()
+ .statusCode(204);
+ }
+
+ @Test
+ public void expressionHeaderFunction() {
+ RestAssured.given()
+ .get("/jq/expression/header/function")
+ .then()
+ .statusCode(204);
+ }
+
+ @Test
+ public void expressionHeaderString() {
+ RestAssured.given()
+ .get("/jq/expression/header/string")
+ .then()
+ .statusCode(204);
+ }
+
+ @Test
+ public void expressionPojo() {
+ RestAssured.given()
+ .get("/jq/expression/pojo")
+ .then()
+ .statusCode(204);
+ }
+
+ @Test
+ public void expressionProperty() {
+ RestAssured.given()
+ .get("/jq/expression/property")
+ .then()
+ .statusCode(204);
+ }
+
+ @Test
+ public void expressionPropertyFunction() {
+ RestAssured.given()
+ .get("/jq/expression/property/function")
+ .then()
+ .statusCode(204);
+ }
+}
diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index a317931c5a..f99d8641d4 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -120,6 +120,7 @@
<module>jms-qpid-amqp-client</module>
<module>jolt</module>
<module>jpa</module>
+ <module>jq</module>
<module>js-dsl</module>
<module>jsch</module>
<module>jslt</module>
diff --git a/pom.xml b/pom.xml
index 03396437c2..3685ae1c95 100644
--- a/pom.xml
+++ b/pom.xml
@@ -51,6 +51,7 @@
<quarkiverse-amazonservices.version>1.1.1</quarkiverse-amazonservices.version><!--
https://repo1.maven.org/maven2/io/quarkiverse/amazonservices/quarkus-amazon-services-parent/
-->
<quarkiverse-artemis.version>1.2.0</quarkiverse-artemis.version><!--
https://repo1.maven.org/maven2/io/quarkiverse/artemis/quarkus-artemis-parent/
-->
<quarkiverse-freemarker.version>0.3.0</quarkiverse-freemarker.version><!--
https://repo1.maven.org/maven2/io/quarkiverse/freemarker/quarkus-freemarker-parent/
-->
+
<quarkiverse-jackson-jq.version>1.0.1</quarkiverse-jackson-jq.version><!--
https://repo1.maven.org/maven2/io/quarkiverse/jackson-jq/quarkus-jackson-jq-parent/
-->
<quarkiverse-jgit.version>1.2.0</quarkiverse-jgit.version><!--
https://repo1.maven.org/maven2/io/quarkiverse/jgit/quarkus-jgit-parent/ -->
<quarkiverse-jsch.version>2.0.0</quarkiverse-jsch.version><!--
https://repo1.maven.org/maven2/io/quarkiverse/jsch/quarkus-jsch-parent/ -->
<quarkiverse-minio.version>2.3.0</quarkiverse-minio.version><!--
https://repo1.maven.org/maven2/io/quarkiverse/minio/quarkus-minio-parent/ -->
diff --git a/poms/bom/pom.xml b/poms/bom/pom.xml
index bff035faa9..496c2e58e3 100644
--- a/poms/bom/pom.xml
+++ b/poms/bom/pom.xml
@@ -3441,6 +3441,11 @@
</exclusion>
</exclusions>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-jq</artifactId>
+ <version>${camel.version}</version>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-js-dsl</artifactId>
@@ -7500,6 +7505,16 @@
<artifactId>camel-quarkus-jpa-deployment</artifactId>
<version>${camel-quarkus.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-jq</artifactId>
+ <version>${camel-quarkus.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-jq-deployment</artifactId>
+ <version>${camel-quarkus.version}</version>
+ </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-js-dsl</artifactId>
@@ -9734,6 +9749,16 @@
<artifactId>quarkus-freemarker-deployment</artifactId>
<version>${quarkiverse-freemarker.version}</version>
</dependency>
+ <dependency>
+ <groupId>io.quarkiverse.jackson-jq</groupId>
+ <artifactId>quarkus-jackson-jq</artifactId>
+ <version>${quarkiverse-jackson-jq.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>io.quarkiverse.jackson-jq</groupId>
+ <artifactId>quarkus-jackson-jq-deployment</artifactId>
+ <version>${quarkiverse-jackson-jq.version}</version>
+ </dependency>
<dependency>
<groupId>io.quarkiverse.jgit</groupId>
<artifactId>quarkus-jgit</artifactId>
diff --git a/poms/bom/src/main/generated/flattened-full-pom.xml
b/poms/bom/src/main/generated/flattened-full-pom.xml
index c186b39a8f..eed860c7a3 100644
--- a/poms/bom/src/main/generated/flattened-full-pom.xml
+++ b/poms/bom/src/main/generated/flattened-full-pom.xml
@@ -3387,6 +3387,11 @@
</exclusion>
</exclusions>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>camel-jq</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>3.18.0</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>camel-js-dsl</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -7444,6 +7449,16 @@
<artifactId>camel-quarkus-jpa-deployment</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<version>2.11.0-SNAPSHOT</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
</dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>camel-quarkus-jq</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>2.11.0-SNAPSHOT</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>camel-quarkus-jq-deployment</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>2.11.0-SNAPSHOT</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>camel-quarkus-js-dsl</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -9676,6 +9691,16 @@
<artifactId>quarkus-freemarker-deployment</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<version>0.3.0</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
</dependency>
+ <dependency>
+ <groupId>io.quarkiverse.jackson-jq</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>quarkus-jackson-jq</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>1.0.1</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </dependency>
+ <dependency>
+ <groupId>io.quarkiverse.jackson-jq</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>quarkus-jackson-jq-deployment</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>1.0.1</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </dependency>
<dependency>
<groupId>io.quarkiverse.jgit</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>quarkus-jgit</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
diff --git a/poms/bom/src/main/generated/flattened-reduced-pom.xml
b/poms/bom/src/main/generated/flattened-reduced-pom.xml
index ec29cdd546..fdfcd3c24a 100644
--- a/poms/bom/src/main/generated/flattened-reduced-pom.xml
+++ b/poms/bom/src/main/generated/flattened-reduced-pom.xml
@@ -3387,6 +3387,11 @@
</exclusion>
</exclusions>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-jq</artifactId>
+ <version>3.18.0</version>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-js-dsl</artifactId>
@@ -7444,6 +7449,16 @@
<artifactId>camel-quarkus-jpa-deployment</artifactId>
<version>2.11.0-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-jq</artifactId>
+ <version>2.11.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-jq-deployment</artifactId>
+ <version>2.11.0-SNAPSHOT</version>
+ </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-js-dsl</artifactId>
@@ -9676,6 +9691,16 @@
<artifactId>quarkus-freemarker-deployment</artifactId>
<version>0.3.0</version>
</dependency>
+ <dependency>
+ <groupId>io.quarkiverse.jackson-jq</groupId>
+ <artifactId>quarkus-jackson-jq</artifactId>
+ <version>1.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>io.quarkiverse.jackson-jq</groupId>
+ <artifactId>quarkus-jackson-jq-deployment</artifactId>
+ <version>1.0.1</version>
+ </dependency>
<dependency>
<groupId>io.quarkiverse.jgit</groupId>
<artifactId>quarkus-jgit</artifactId>
diff --git a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
index 01fbf7e758..e3f8e63aad 100644
--- a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
+++ b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
@@ -3387,6 +3387,11 @@
</exclusion>
</exclusions>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>camel-jq</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>3.18.0</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>camel-js-dsl</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -7444,6 +7449,16 @@
<artifactId>camel-quarkus-jpa-deployment</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<version>2.11.0-SNAPSHOT</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
</dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>camel-quarkus-jq</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>2.11.0-SNAPSHOT</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>camel-quarkus-jq-deployment</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>2.11.0-SNAPSHOT</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>camel-quarkus-js-dsl</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -9676,6 +9691,16 @@
<artifactId>quarkus-freemarker-deployment</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<version>0.3.0</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
</dependency>
+ <dependency>
+ <groupId>io.quarkiverse.jackson-jq</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>quarkus-jackson-jq</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>1.0.1</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </dependency>
+ <dependency>
+ <groupId>io.quarkiverse.jackson-jq</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>quarkus-jackson-jq-deployment</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>1.0.1</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </dependency>
<dependency>
<groupId>io.quarkiverse.jgit</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>quarkus-jgit</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
diff --git a/tooling/scripts/test-categories.yaml
b/tooling/scripts/test-categories.yaml
index cc50603575..08ccfacb81 100644
--- a/tooling/scripts/test-categories.yaml
+++ b/tooling/scripts/test-categories.yaml
@@ -124,6 +124,7 @@ group-08:
- azure-grouped
- crypto
- dozer
+ - jq
- master
- pdf
- saxon