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/03 11:58:53 UTC
[camel-quarkus] 01/04: Upgrade Camel to 3.13.0
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 83a33fd9c73427655043a4106af42be96d27c1ed
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 | 6 ++---
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 +++-
.../quarkus/component/mllp/it/MllpResource.java | 28 +++++++---------------
.../camel/quarkus/component/mllp/it/MllpTest.java | 9 -------
pom.xml | 10 ++++----
11 files changed, 25 insertions(+), 53 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..2a31202 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,8 +50,8 @@ 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}
- start_path: docs/components
+ - camel-spring-boot-3.13.x # replace ${camel.sb.docs.branch}
+ start_path: docs
asciidoc:
attributes:
diff --git a/docs/antora.yml b/docs/antora.yml
index 30b5114..5f20fad 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-SNAPSHOT # replace ${camel.version}
quarkus-version: 2.4.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/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 bfe9109..6ba26be 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-SNAPSHOT</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.version>${camel.major.minor}.0</camel.version>
+ <camel.major.minor>3.13</camel.major.minor> <!-- run after each change: cd docs && mvnd validate -->
+ <camel.version>${camel.major.minor}.0-SNAPSHOT</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.10.2</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 -->
@@ -107,7 +106,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 -->