You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2021/11/17 15:39:16 UTC

[camel-quarkus] 01/05: Upgrade Camel to 3.13.0

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

commit 1584a7b44bdd09696d050a2f2e1913b508c0696f
Author: James Netherton <ja...@gmail.com>
AuthorDate: Fri Oct 8 11:40:29 2021 +0100

    Upgrade Camel to 3.13.0
---
 docs/antora-playbook-dev.yml                       |  2 +-
 docs/antora-playbook.yml                           |  4 ++--
 docs/antora.yml                                    |  6 ++---
 .../reference/extensions/aws-secrets-manager.adoc  |  2 +-
 .../ROOT/pages/reference/extensions/rest.adoc      |  2 +-
 extensions-jvm/spark/bom/pom.xml                   |  5 ----
 .../atlasmap/deployment/AtlasmapProcessor.java     |  3 ---
 .../deployment/AzureEventhubsProcessor.java        |  5 +++-
 .../component/sftp/it/SftpTestResource.java        |  4 ++--
 .../src/main/resources/application.properties      | 17 +++++++++++++
 .../infinispan/InfinispanServerTestResource.java   |  2 +-
 .../quarkus/component/mllp/it/MllpResource.java    | 28 +++++++---------------
 .../camel/quarkus/component/mllp/it/MllpTest.java  |  9 -------
 pom.xml                                            | 10 ++++----
 poms/bom/pom.xml                                   |  2 +-
 15 files changed, 45 insertions(+), 56 deletions(-)

diff --git a/docs/antora-playbook-dev.yml b/docs/antora-playbook-dev.yml
index d4ab0d0..97ac4b9 100644
--- a/docs/antora-playbook-dev.yml
+++ b/docs/antora-playbook-dev.yml
@@ -26,7 +26,7 @@ content:
     start_path: docs
   - url: git@github.com:apache/camel.git
     branches:
-      - camel-3.12.x # replace ${camel.docs.branch}
+      - camel-3.13.x # replace ${camel.docs.branch}
     start_paths:
       - docs/components
   - url: git@github.com:apache/camel.git
diff --git a/docs/antora-playbook.yml b/docs/antora-playbook.yml
index 880abf2..da9b4b1 100644
--- a/docs/antora-playbook.yml
+++ b/docs/antora-playbook.yml
@@ -33,7 +33,7 @@ content:
 # The version/branch of main camel 'components' this version of camel-quarkus uses
   - url: https://github.com/apache/camel.git
     branches:
-      - camel-3.12.x # replace ${camel.docs.branch}
+      - camel-3.13.x # replace ${camel.docs.branch}
     start_paths:
       # eip
       - core/camel-core-engine/src/main/docs
@@ -50,7 +50,7 @@ content:
 # The camel-spring-boot version corresponding to the main camel 'components' version/branch
   - url: https://github.com/apache/camel-spring-boot.git
     branches:
-      - camel-spring-boot-3.12.x # replace ${camel.sb.docs.branch}
+      - camel-spring-boot-3.13.x # replace ${camel.sb.docs.branch}
     start_path: docs/components
 
 asciidoc:
diff --git a/docs/antora.yml b/docs/antora.yml
index 77257a1..bc1bbc6 100644
--- a/docs/antora.yml
+++ b/docs/antora.yml
@@ -26,11 +26,11 @@ asciidoc:
   attributes:
     min-maven-version: 3.6.2 # replace ${min-maven-version}
     target-maven-version: 3.8.1 # replace ${target-maven-version}
-    camel-version: 3.12.0 # replace ${camel.version}
+    camel-version: 3.13.0 # replace ${camel.version}
     quarkus-version: 2.5.0.Final # replace ${quarkus.version}
     # attributes used in xrefs to other Antora components
-    cq-camel-components: 3.12.x@components # replace ${camel.docs.components.xref}
+    cq-camel-components: 3.13.x@components # replace ${camel.docs.components.xref}
     quarkus-examples-version: latest
     # indexTable common
-    indexer-version: 3.12.x # replace ${camel.docs.components.version}
+    indexer-version: 3.13.x # replace ${camel.docs.components.version}
     indexer-component: components
diff --git a/docs/modules/ROOT/pages/reference/extensions/aws-secrets-manager.adoc b/docs/modules/ROOT/pages/reference/extensions/aws-secrets-manager.adoc
index 19e3151..cfd26f3 100644
--- a/docs/modules/ROOT/pages/reference/extensions/aws-secrets-manager.adoc
+++ b/docs/modules/ROOT/pages/reference/extensions/aws-secrets-manager.adoc
@@ -18,7 +18,7 @@ Manage AWS Secrets Manager services using AWS SDK version 2.x.
 
 == What's inside
 
-* xref:{cq-camel-components}::aws-secrets-manager-component.adoc[AWS Secrets Manager component], URI syntax: `aws-secrets-manager://label`
+* xref:{cq-camel-components}::aws-secrets-manager-component.adoc[AWS Secrets Manager component], URI syntax: `aws-secrets-manager:label`
 
 Please refer to the above link for usage and configuration details.
 
diff --git a/docs/modules/ROOT/pages/reference/extensions/rest.adoc b/docs/modules/ROOT/pages/reference/extensions/rest.adoc
index aa25eaa..a84a98a 100644
--- a/docs/modules/ROOT/pages/reference/extensions/rest.adoc
+++ b/docs/modules/ROOT/pages/reference/extensions/rest.adoc
@@ -20,7 +20,7 @@ Expose REST services and their OpenAPI Specification or call external REST servi
 == What's inside
 
 * xref:{cq-camel-components}::rest-component.adoc[REST component], URI syntax: `rest:method:path:uriTemplate`
-* xref:{cq-camel-components}::rest-api-component.adoc[REST API component], URI syntax: `rest-api:path/contextIdPattern`
+* xref:{cq-camel-components}::rest-api-component.adoc[REST API component], URI syntax: `rest-api:path`
 
 Please refer to the above links for usage and configuration details.
 
diff --git a/extensions-jvm/spark/bom/pom.xml b/extensions-jvm/spark/bom/pom.xml
index 7ab0965..338a498 100644
--- a/extensions-jvm/spark/bom/pom.xml
+++ b/extensions-jvm/spark/bom/pom.xml
@@ -113,11 +113,6 @@
                 <version>${commons-net.version}</version>
             </dependency>
             <dependency>
-                <groupId>io.netty</groupId>
-                <artifactId>netty</artifactId>
-                <version>${netty3.version}</version><!-- Managed here because it would conflict with netty 4 used elsewhere -->
-            </dependency>
-            <dependency>
                 <groupId>io.dropwizard.metrics</groupId>
                 <artifactId>metrics-json</artifactId>
                 <version>${metrics.version}</version>
diff --git a/extensions/atlasmap/deployment/src/main/java/org/apache/camel/quarkus/component/atlasmap/deployment/AtlasmapProcessor.java b/extensions/atlasmap/deployment/src/main/java/org/apache/camel/quarkus/component/atlasmap/deployment/AtlasmapProcessor.java
index 9ba0849..0789a2c 100644
--- a/extensions/atlasmap/deployment/src/main/java/org/apache/camel/quarkus/component/atlasmap/deployment/AtlasmapProcessor.java
+++ b/extensions/atlasmap/deployment/src/main/java/org/apache/camel/quarkus/component/atlasmap/deployment/AtlasmapProcessor.java
@@ -25,7 +25,6 @@ import java.util.stream.Stream;
 import io.atlasmap.core.DefaultAtlasContextFactory;
 import io.atlasmap.core.DefaultAtlasModuleInfo;
 import io.atlasmap.csv.module.CsvModule;
-import io.atlasmap.dfdl.module.DfdlModule;
 import io.atlasmap.java.module.JavaModule;
 import io.atlasmap.json.module.JsonModule;
 import io.atlasmap.mxbean.AtlasContextFactoryMXBean;
@@ -63,7 +62,6 @@ class AtlasmapProcessor {
         items.add(new ReflectiveClassBuildItem(false, false, DefaultAtlasModuleInfo.class));
         items.add(new ReflectiveClassBuildItem(true, false, JsonModule.class));
         items.add(new ReflectiveClassBuildItem(true, false, CsvModule.class));
-        items.add(new ReflectiveClassBuildItem(true, false, DfdlModule.class));
         items.add(new ReflectiveClassBuildItem(true, false, JavaModule.class));
         items.add(new ReflectiveClassBuildItem(true, false, XmlModule.class));
         items.add(new ReflectiveClassBuildItem(false, true, false, AtlasContextFactoryMXBean.class));
@@ -85,7 +83,6 @@ class AtlasmapProcessor {
         indexDependency.produce(new IndexDependencyBuildItem("io.atlasmap", "atlas-java-model"));
         indexDependency.produce(new IndexDependencyBuildItem("io.atlasmap", "atlas-json-model"));
         indexDependency.produce(new IndexDependencyBuildItem("io.atlasmap", "atlas-csv-model"));
-        indexDependency.produce(new IndexDependencyBuildItem("io.atlasmap", "atlas-dfdl-model"));
     }
 
     @BuildStep
diff --git a/extensions/azure-eventhubs/deployment/src/main/java/org/apache/camel/quarkus/component/azure/eventhubs/deployment/AzureEventhubsProcessor.java b/extensions/azure-eventhubs/deployment/src/main/java/org/apache/camel/quarkus/component/azure/eventhubs/deployment/AzureEventhubsProcessor.java
index e09f28a..a2658f8 100644
--- a/extensions/azure-eventhubs/deployment/src/main/java/org/apache/camel/quarkus/component/azure/eventhubs/deployment/AzureEventhubsProcessor.java
+++ b/extensions/azure-eventhubs/deployment/src/main/java/org/apache/camel/quarkus/component/azure/eventhubs/deployment/AzureEventhubsProcessor.java
@@ -76,7 +76,10 @@ class AzureEventhubsProcessor {
 
     @BuildStep
     void runtimeInitializedClasses(BuildProducer<RuntimeInitializedClassBuildItem> runtimeInitializedClasses) {
-        Stream.of("com.azure.messaging.eventhubs.PartitionBasedLoadBalancer")
+        Stream.of(
+                "com.azure.messaging.eventhubs.PartitionBasedLoadBalancer",
+                "com.microsoft.azure.proton.transport.proxy.impl.DigestProxyChallengeProcessorImpl",
+                "com.microsoft.azure.proton.transport.ws.impl.Utils")
                 .map(RuntimeInitializedClassBuildItem::new)
                 .forEach(runtimeInitializedClasses::produce);
     }
diff --git a/integration-tests/ftp/src/test/java/org/apache/camel/quarkus/component/sftp/it/SftpTestResource.java b/integration-tests/ftp/src/test/java/org/apache/camel/quarkus/component/sftp/it/SftpTestResource.java
index 12f62e6..8385e1b 100644
--- a/integration-tests/ftp/src/test/java/org/apache/camel/quarkus/component/sftp/it/SftpTestResource.java
+++ b/integration-tests/ftp/src/test/java/org/apache/camel/quarkus/component/sftp/it/SftpTestResource.java
@@ -29,9 +29,9 @@ import org.apache.camel.quarkus.test.AvailablePortFinder;
 import org.apache.camel.util.CollectionHelper;
 import org.apache.sshd.common.file.virtualfs.VirtualFileSystemFactory;
 import org.apache.sshd.common.keyprovider.ClassLoadableResourceKeyPairProvider;
+import org.apache.sshd.scp.server.ScpCommandFactory;
 import org.apache.sshd.server.SshServer;
-import org.apache.sshd.server.scp.ScpCommandFactory;
-import org.apache.sshd.server.subsystem.sftp.SftpSubsystemFactory;
+import org.apache.sshd.sftp.server.SftpSubsystemFactory;
 import org.jboss.logging.Logger;
 
 public class SftpTestResource implements QuarkusTestResourceLifecycleManager {
diff --git a/integration-tests/infinispan/src/main/resources/application.properties b/integration-tests/infinispan/src/main/resources/application.properties
new file mode 100644
index 0000000..5c1d502
--- /dev/null
+++ b/integration-tests/infinispan/src/main/resources/application.properties
@@ -0,0 +1,17 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+quarkus.infinispan-client.devservices.enabled=false
diff --git a/integration-tests/infinispan/src/test/java/org/apache/camel/quarkus/component/infinispan/InfinispanServerTestResource.java b/integration-tests/infinispan/src/test/java/org/apache/camel/quarkus/component/infinispan/InfinispanServerTestResource.java
index d199d35..812828d 100644
--- a/integration-tests/infinispan/src/test/java/org/apache/camel/quarkus/component/infinispan/InfinispanServerTestResource.java
+++ b/integration-tests/infinispan/src/test/java/org/apache/camel/quarkus/component/infinispan/InfinispanServerTestResource.java
@@ -29,7 +29,7 @@ import org.testcontainers.utility.TestcontainersConfiguration;
 
 public class InfinispanServerTestResource implements QuarkusTestResourceLifecycleManager {
     private static final Logger LOGGER = LoggerFactory.getLogger(InfinispanServerTestResource.class);
-    private static final String CONTAINER_IMAGE = "infinispan/server:12.1";
+    private static final String CONTAINER_IMAGE = "infinispan/server:13.0";
     private static final int HOTROD_PORT = 11222;
     private static final String USER = "camel";
     private static final String PASS = "camel";
diff --git a/integration-tests/mllp/src/main/java/org/apache/camel/quarkus/component/mllp/it/MllpResource.java b/integration-tests/mllp/src/main/java/org/apache/camel/quarkus/component/mllp/it/MllpResource.java
index 720014d..c90ba32 100644
--- a/integration-tests/mllp/src/main/java/org/apache/camel/quarkus/component/mllp/it/MllpResource.java
+++ b/integration-tests/mllp/src/main/java/org/apache/camel/quarkus/component/mllp/it/MllpResource.java
@@ -16,11 +16,9 @@
  */
 package org.apache.camel.quarkus.component.mllp.it;
 
-import javax.annotation.PostConstruct;
-import javax.annotation.PreDestroy;
 import javax.enterprise.context.ApplicationScoped;
 import javax.inject.Inject;
-import javax.ws.rs.GET;
+import javax.inject.Named;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.Produces;
@@ -43,16 +41,6 @@ public class MllpResource {
     @Inject
     CamelContext context;
 
-    @PostConstruct
-    public void init() {
-        System.setProperty(MllpComponent.MLLP_DEFAULT_CHARSET_PROPERTY, "UTF-8");
-    }
-
-    @PreDestroy
-    public void preDestroy() {
-        System.clearProperty(MllpComponent.MLLP_DEFAULT_CHARSET_PROPERTY);
-    }
-
     @Path("/send")
     @POST
     @Produces(MediaType.TEXT_PLAIN)
@@ -72,13 +60,6 @@ public class MllpResource {
         mockEndpoint.assertIsSatisfied(5000);
     }
 
-    @Path("/charset/default")
-    @GET
-    @Produces(MediaType.TEXT_PLAIN)
-    public String getDefaultCharset() {
-        return MllpComponent.getDefaultCharset().name();
-    }
-
     @Path("/charset/msh18")
     @POST
     @Produces(MediaType.TEXT_PLAIN)
@@ -88,4 +69,11 @@ public class MllpResource {
         String ack = exchange.getMessage().getHeader(MllpConstants.MLLP_ACKNOWLEDGEMENT_STRING, String.class);
         return ack.split("\r")[0];
     }
+
+    @Named("mllp")
+    MllpComponent component() {
+        MllpComponent component = new MllpComponent();
+        component.setDefaultCharset("UTF-8");
+        return component;
+    }
 }
diff --git a/integration-tests/mllp/src/test/java/org/apache/camel/quarkus/component/mllp/it/MllpTest.java b/integration-tests/mllp/src/test/java/org/apache/camel/quarkus/component/mllp/it/MllpTest.java
index e029585..e85f3ca 100644
--- a/integration-tests/mllp/src/test/java/org/apache/camel/quarkus/component/mllp/it/MllpTest.java
+++ b/integration-tests/mllp/src/test/java/org/apache/camel/quarkus/component/mllp/it/MllpTest.java
@@ -21,7 +21,6 @@ import io.restassured.RestAssured;
 import org.junit.jupiter.api.Test;
 
 import static org.hamcrest.Matchers.containsString;
-import static org.hamcrest.Matchers.is;
 
 @QuarkusTest
 class MllpTest {
@@ -76,12 +75,4 @@ class MllpTest {
                 .body(containsString("ÏNHOUSE"))
                 .statusCode(200);
     }
-
-    @Test
-    public void testDefaultCharsetFromSystemProperty() {
-        RestAssured.get("/mllp/charset/default")
-                .then()
-                .body(is("UTF-8"))
-                .statusCode(200);
-    }
 }
diff --git a/pom.xml b/pom.xml
index 3ffcd86..d7b5a38 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
     <parent>
         <groupId>org.apache.camel</groupId>
         <artifactId>camel-dependencies</artifactId>
-        <version>3.12.0</version>
+        <version>3.13.0</version>
     </parent>
 
     <groupId>org.apache.camel.quarkus</groupId>
@@ -39,13 +39,12 @@
     <properties>
 
         <!-- Primary dependencies - maintained manually -->
-        <camel.major.minor>3.12</camel.major.minor> <!-- run after each change: cd docs && mvnd validate -->
+        <camel.major.minor>3.13</camel.major.minor> <!-- run after each change: cd docs && mvnd validate -->
         <camel.version>${camel.major.minor}.0</camel.version>
         <camel.docs.components.version>${camel.major.minor}.x</camel.docs.components.version><!-- the version in Camel's docs/components/antora.yml -->
         <camel.docs.components.xref>${camel.docs.components.version}@components</camel.docs.components.xref><!-- the version in Camel's docs/components/antora.yml -->
         <camel.docs.branch>camel-${camel.major.minor}.x</camel.docs.branch><!-- The stable camel branch on which our Antora docs depends -->
         <camel.sb.docs.branch>camel-spring-boot-${camel.major.minor}.x</camel.sb.docs.branch><!-- The stable camel-spring-boot branch on which our Antora docs depends -->
-
         <cassandra-quarkus.version>1.1.1</cassandra-quarkus.version><!-- https://repo1.maven.org/maven2/com/datastax/oss/quarkus/cassandra-quarkus-bom/ -->
         <debezium.version>1.6.1.Final</debezium.version><!-- May go back to Camel's ${debezium-version} when they are in sync https://repo1.maven.org/maven2/io/debezium/debezium-bom/ -->
         <optaplanner.version>8.9.1.Final</optaplanner.version><!-- May go back to Camel's ${optaplanner-version} when they are in sync https://repo1.maven.org/maven2/org/optaplanner/optaplanner-quarkus/ -->
@@ -62,7 +61,7 @@
         <antlr3.version>3.5.2</antlr3.version><!-- Spark, Stringtemplate and probably others -->
         <avro.version>1.11.0</avro.version><!-- @sync io.quarkus:quarkus-bom:${quarkus.version} dep:org.apache.avro:avro -->
         <aws-java-sdk.version>1.11.714</aws-java-sdk.version>
-        <azure-sdk-bom.version>${azure-sdk-bom-version}</azure-sdk-bom.version>
+        <azure-core.version>1.21.0</azure-core.version><!-- @sync com.azure:azure-storage-blob:${azure-storage-blob-version} dep:com.azure:azure-core -->
         <bouncycastle.version>1.69</bouncycastle.version><!-- @sync io.quarkus:quarkus-bom:${quarkus.version} dep:org.bouncycastle:bcprov-jdk15on -->
         <commons-beanutils.version>${commons-beanutils-version}</commons-beanutils.version>
         <commons-cli.version>1.4</commons-cli.version><!-- keep in sync with Quarkus, via quarkus-bootstrap-core -->
@@ -73,7 +72,7 @@
         <commons-text.version>${commons-text-version}</commons-text.version> <!-- Spark -->
         <curator.version>4.3.0</curator.version><!-- Mess in the transitive dependencies of Spark, Zookeeper and other hadoop related components -->
         <derby.version>10.15.2.0</derby.version><!-- Spark -->
-        <dropwizard-metrics.version>4.1.19</dropwizard-metrics.version><!-- @sync com.azure:azure-sdk-bom:${azure-sdk-bom.version} dep:io.dropwizard.metrics:metrics-core -->
+        <dropwizard-metrics.version>4.1.0</dropwizard-metrics.version><!-- @sync com.azure:azure-sdk-bom:${azure-sdk-bom.version} dep:io.dropwizard.metrics:metrics-core -->
         <eddsa.version>${eddsa-version}</eddsa.version>
         <freemarker.version>2.3.31</freemarker.version><!-- @sync io.quarkiverse.freemarker:quarkus-freemarker-parent:${quarkiverse.freemarker.version} prop:freemarker.version -->
         <fommil.netlib.core.version>1.1.2</fommil.netlib.core.version><!-- Mess in Weka transitive deps -->
@@ -108,7 +107,6 @@
         <kudu.version>${kudu-version}</kudu.version>
         <kotlin.version>1.5.31</kotlin.version><!-- @sync io.quarkus:quarkus-bom:${quarkus.version} dep:org.jetbrains.kotlin:kotlin-stdlib -->
         <libthrift.version>${libthrift-version}</libthrift.version> <!-- Spark -->
-        <netty3.version>${netty3-version}</netty3.version><!-- Spark -->
         <metrics.version>${metrics-version}</metrics.version><!-- Spark -->
         <mvel2.version>${mvel-version}</mvel2.version>
         <nimbus-jose-jwt.version>9.10</nimbus-jose-jwt.version><!-- Mess in hdfs transitive deps, used also by io.strimzi:kafka-oauth-client recommended by https://quarkus.io/guides/kafka#authenticating-with-oauth -->
diff --git a/poms/bom/pom.xml b/poms/bom/pom.xml
index 69e3e8f..cb38305 100644
--- a/poms/bom/pom.xml
+++ b/poms/bom/pom.xml
@@ -1171,7 +1171,7 @@
                 <exclusions>
                     <exclusion>
                         <groupId>org.infinispan</groupId>
-                        <artifactId>*</artifactId>
+                        <artifactId>infinispan-core</artifactId>
                     </exclusion>
                 </exclusions>
             </dependency>