You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/12/23 17:20:29 UTC

[camel-quarkus] 02/04: Added Json-Patch Extension

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

acosentino pushed a commit to branch json-patch-jvm-ext
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 71997425b43c02440fbb44279a757cba3c07de9f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Dec 23 15:30:53 2021 +0100

    Added Json-Patch Extension
---
 catalog/pom.xml                                       | 13 +++++++++++++
 docs/modules/ROOT/nav.adoc                            |  1 +
 .../json-patch/pom.xml                                | 19 -------------------
 .../component/json/patch/it/JsonPatchResource.java    |  0
 .../component/json/patch/it/JsonPatchTest.java        |  0
 integration-tests-jvm/pom.xml                         |  1 +
 integration-tests/pom.xml                             |  1 -
 7 files changed, 15 insertions(+), 20 deletions(-)

diff --git a/catalog/pom.xml b/catalog/pom.xml
index 40d6f4a..41b80fa 100644
--- a/catalog/pom.xml
+++ b/catalog/pom.xml
@@ -2198,6 +2198,19 @@
         </dependency>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-json-patch</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-json-validator</artifactId>
             <version>${project.version}</version>
             <type>pom</type>
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 31b3a6f..b767ea5 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -188,6 +188,7 @@
 *** xref:reference/extensions/jing.adoc[Jing]
 *** xref:reference/extensions/jira.adoc[Jira]
 *** xref:reference/extensions/johnzon.adoc[Johnzon]
+*** xref:reference/extensions/json-patch.adoc[JsonPatch]
 *** xref:reference/extensions/kafka.adoc[Kafka]
 *** xref:reference/extensions/kamelet.adoc[Kamelet]
 *** xref:reference/extensions/kamelet-reify.adoc[Kamelet Reify]
diff --git a/integration-tests/json-patch/pom.xml b/integration-tests-jvm/json-patch/pom.xml
similarity index 82%
rename from integration-tests/json-patch/pom.xml
rename to integration-tests-jvm/json-patch/pom.xml
index a39ab63..a469710 100644
--- a/integration-tests/json-patch/pom.xml
+++ b/integration-tests-jvm/json-patch/pom.xml
@@ -32,25 +32,6 @@
     <name>Camel Quarkus :: Integration Tests :: JsonPatch</name>
     <description>Integration tests for Camel Quarkus JsonPatch extension</description>
 
-    <dependencyManagement>
-        <dependencies>
-            <dependency>
-                <groupId>${quarkus.platform.group-id}</groupId>
-                <artifactId>${quarkus.platform.artifact-id}</artifactId>
-                <version>${quarkus.platform.version}</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.camel.quarkus</groupId>
-                <artifactId>camel-quarkus-bom-test</artifactId>
-                <version>${camel-quarkus.version}</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
-
     <dependencies>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
diff --git a/integration-tests/json-patch/src/main/java/org/apache/camel/quarkus/component/json/patch/it/JsonPatchResource.java b/integration-tests-jvm/json-patch/src/main/java/org/apache/camel/quarkus/component/json/patch/it/JsonPatchResource.java
similarity index 100%
rename from integration-tests/json-patch/src/main/java/org/apache/camel/quarkus/component/json/patch/it/JsonPatchResource.java
rename to integration-tests-jvm/json-patch/src/main/java/org/apache/camel/quarkus/component/json/patch/it/JsonPatchResource.java
diff --git a/integration-tests/json-patch/src/test/java/org/apache/camel/quarkus/component/json/patch/it/JsonPatchTest.java b/integration-tests-jvm/json-patch/src/test/java/org/apache/camel/quarkus/component/json/patch/it/JsonPatchTest.java
similarity index 100%
rename from integration-tests/json-patch/src/test/java/org/apache/camel/quarkus/component/json/patch/it/JsonPatchTest.java
rename to integration-tests-jvm/json-patch/src/test/java/org/apache/camel/quarkus/component/json/patch/it/JsonPatchTest.java
diff --git a/integration-tests-jvm/pom.xml b/integration-tests-jvm/pom.xml
index e95792d..32adcf0 100644
--- a/integration-tests-jvm/pom.xml
+++ b/integration-tests-jvm/pom.xml
@@ -86,6 +86,7 @@
         <module>jooq</module>
         <module>joor</module>
         <module>jsonapi</module>
+        <module>json-patch</module>
         <module>jt400</module>
         <module>kamelet-reify</module>
         <module>kotlin-dsl</module>
diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index 08f2ae2..436955f 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -126,7 +126,6 @@
         <module>js-dsl</module>
         <module>jsch</module>
         <module>jslt</module>
-        <module>json-patch</module>
         <module>json-validator</module>
         <module>jsonata</module>
         <module>jsonpath</module>