This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 4b30419 camel-jbang - Use vertx-http as rest producer.
4b30419 is described below
commit 4b304199b812d045aed7ef981dc2f108c48a89c3
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Feb 21 12:41:36 2022 +0100
camel-jbang - Use vertx-http as rest producer.
---
.../main/java/org/apache/camel/component/rest/RestEndpoint.java | 3 ++-
dsl/camel-kamelet-main/pom.xml | 8 ++++----
.../src/main/java/org/apache/camel/main/KameletMain.java | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git
a/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestEndpoint.java
b/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestEndpoint.java
index 401fbe5..e81cec8 100644
---
a/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestEndpoint.java
+++
b/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestEndpoint.java
@@ -55,7 +55,8 @@ public class RestEndpoint extends DefaultEndpoint {
public static final String[] DEFAULT_REST_CONSUMER_COMPONENTS
= new String[] { "platform-http", "servlet", "jetty", "undertow",
"netty-http", "coap" };
- public static final String[] DEFAULT_REST_PRODUCER_COMPONENTS = new
String[] { "http", "undertow", "netty-http" };
+ public static final String[] DEFAULT_REST_PRODUCER_COMPONENTS
+ = new String[] { "vertx-http", "http", "undertow", "netty-http" };
public static final String DEFAULT_API_COMPONENT_NAME = "openapi";
public static final String RESOURCE_PATH =
"META-INF/services/org/apache/camel/rest/";
diff --git a/dsl/camel-kamelet-main/pom.xml b/dsl/camel-kamelet-main/pom.xml
index 3e495a56..c1b4f9f 100644
--- a/dsl/camel-kamelet-main/pom.xml
+++ b/dsl/camel-kamelet-main/pom.xml
@@ -66,10 +66,6 @@
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
- <artifactId>camel-http</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
<artifactId>camel-jackson</artifactId>
</dependency>
<dependency>
@@ -90,6 +86,10 @@
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
+ <artifactId>camel-vertx-http</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
<artifactId>camel-resourceresolver-github</artifactId>
</dependency>
<dependency>
diff --git
a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java
b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java
index ec5f721..3637142 100644
---
a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java
+++
b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java
@@ -237,7 +237,7 @@ public class KameletMain extends MainCommandLineSupport {
protected void configureInitialProperties(String location) {
addInitialProperty("camel.component.kamelet.location", location);
addInitialProperty("camel.component.rest.consumerComponentName",
"platform-http");
- addInitialProperty("camel.component.rest.producerComponentName",
"http");
+ addInitialProperty("camel.component.rest.producerComponentName",
"vertx-http");
}
}