You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2025/05/17 15:03:33 UTC

(camel-kamelets-examples) branch main updated (cfdae98 -> 4c8dc36)

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

davsclaus pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets-examples.git


    from cfdae98  Bump for next version
     new 673cf8c  Polished for Camel 4.12
     new 4c8dc36  CAMEL-22079: camel-jbang - Move DEPS modeline parsing out of camel-k

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 jbang/artemis/consumer.camel.yaml                                 | 2 --
 jbang/artemis/producer.camel.yaml                                 | 2 --
 jbang/aws-database-admin-secrets-refresh/sql-query.camel.yaml     | 2 +-
 jbang/aws-s3-large-object/downloadFromS3.camel.yaml               | 2 --
 jbang/aws-s3-large-object/uploadToS3.camel.yaml                   | 2 --
 jbang/aws-secrets-manager/timer-aws-secret-reloading.camel.yaml   | 2 +-
 .../azure-kafka-schema-registry-producer.camel.yaml               | 2 +-
 .../kafka-kamelet-log.camel.yaml                                  | 2 +-
 .../kafka-log.camel.yaml                                          | 8 ++++----
 jbang/azure-eventhubs-kafka-ibm-mq/kafka-mq.camel.yaml            | 2 +-
 jbang/azure-eventhubs-kafka-ibm-mq/mq-log.camel.yaml              | 2 +-
 .../timer-azure-key-vault-reloading.camel.yaml                    | 2 --
 jbang/azure-storage-blob-cdc/azure-storage-blob-cdc.camel.yaml    | 2 +-
 jbang/custom-kamelet-local/route.camel.yaml                       | 2 --
 jbang/custom-kamelet/user.java                                    | 2 --
 jbang/dependency-injection/Echo.java                              | 2 --
 jbang/dependency-injection/Hello.java                             | 2 --
 jbang/error-handler/foo.camel.yaml                                | 2 --
 .../timer-gcp-secret-reloading.camel.yaml                         | 2 --
 jbang/google-secret-manager/timer-gcp-sec-finnhub.camel.yaml      | 2 --
 jbang/hello-java/Hey.java                                         | 5 +----
 jbang/hello-xml/hi.xml                                            | 1 -
 jbang/hello-yaml/hello.camel.yaml                                 | 2 --
 jbang/http-streaming/my-stream.camel.yaml                         | 2 --
 .../kafka-apicurio-kamelet.camel.yaml                             | 2 +-
 .../kafka-apicurio-producer-kamelet.camel.yaml                    | 2 +-
 jbang/kafka-apicurio-schema-registry/kafka-log.camel.yaml         | 4 ++--
 .../kafka-apicurio-kamelet.camel.yaml                             | 2 +-
 .../kafka-apicurio-kamelet.camel.yaml                             | 2 +-
 .../kafka-apicurio-producer-kamelet.camel.yaml                    | 2 +-
 .../kafka-batch-azure-storage-blob.camel.yaml                     | 2 --
 jbang/kafka-batch-s3/kafka-batch-s3.camel.yaml                    | 2 --
 jbang/kafka-health/consumer.camel.yaml                            | 2 --
 jbang/kafka-health/producer.camel.yaml                            | 2 --
 jbang/kafka-mq/kafka-mq.camel.yaml                                | 4 ++--
 jbang/kafka-mq/mq-log.camel.yaml                                  | 2 +-
 jbang/local-jar/foo.java                                          | 2 --
 jbang/main-profile/hello.camel.yaml                               | 2 --
 jbang/open-api-contract-first/README.md                           | 8 ++++----
 jbang/open-api-contract-first/petstore.camel.yaml                 | 1 +
 jbang/pipe/to_csv.java                                            | 1 -
 jbang/pipe/upper.camel.yaml                                       | 2 --
 jbang/postgresql-gcp-secret-refresh/postgresql-log.camel.yaml     | 2 --
 jbang/type-converter/MyRoute.java                                 | 2 --
 jbang/variables-eip/myapp.camel.yaml                              | 2 --
 jbang/variables/myapp.java                                        | 2 --
 jbang/xml-and-bean/route.camel.xml                                | 1 -
 47 files changed, 27 insertions(+), 82 deletions(-)


(camel-kamelets-examples) 02/02: CAMEL-22079: camel-jbang - Move DEPS modeline parsing out of camel-k

Posted by da...@apache.org.
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-kamelets-examples.git

commit 4c8dc3680960ca736fc8b533f1f9440c8a651d5a
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat May 17 17:03:24 2025 +0200

    CAMEL-22079: camel-jbang - Move DEPS modeline parsing out of camel-k
---
 jbang/artemis/consumer.camel.yaml                                 | 2 --
 jbang/artemis/producer.camel.yaml                                 | 2 --
 jbang/aws-database-admin-secrets-refresh/sql-query.camel.yaml     | 2 +-
 jbang/aws-s3-large-object/downloadFromS3.camel.yaml               | 2 --
 jbang/aws-s3-large-object/uploadToS3.camel.yaml                   | 2 --
 jbang/aws-secrets-manager/timer-aws-secret-reloading.camel.yaml   | 2 +-
 .../azure-kafka-schema-registry-producer.camel.yaml               | 2 +-
 .../kafka-kamelet-log.camel.yaml                                  | 2 +-
 .../kafka-log.camel.yaml                                          | 8 ++++----
 jbang/azure-eventhubs-kafka-ibm-mq/kafka-mq.camel.yaml            | 2 +-
 jbang/azure-eventhubs-kafka-ibm-mq/mq-log.camel.yaml              | 2 +-
 .../timer-azure-key-vault-reloading.camel.yaml                    | 2 --
 jbang/azure-storage-blob-cdc/azure-storage-blob-cdc.camel.yaml    | 2 +-
 jbang/custom-kamelet-local/route.camel.yaml                       | 2 --
 jbang/custom-kamelet/user.java                                    | 2 --
 jbang/dependency-injection/Echo.java                              | 2 --
 jbang/dependency-injection/Hello.java                             | 2 --
 jbang/error-handler/foo.camel.yaml                                | 2 --
 .../timer-gcp-secret-reloading.camel.yaml                         | 2 --
 jbang/google-secret-manager/timer-gcp-sec-finnhub.camel.yaml      | 2 --
 jbang/hello-java/Hey.java                                         | 5 +----
 jbang/hello-xml/hi.xml                                            | 1 -
 jbang/hello-yaml/hello.camel.yaml                                 | 2 --
 jbang/http-streaming/my-stream.camel.yaml                         | 2 --
 .../kafka-apicurio-kamelet.camel.yaml                             | 2 +-
 .../kafka-apicurio-producer-kamelet.camel.yaml                    | 2 +-
 jbang/kafka-apicurio-schema-registry/kafka-log.camel.yaml         | 4 ++--
 .../kafka-apicurio-kamelet.camel.yaml                             | 2 +-
 .../kafka-apicurio-kamelet.camel.yaml                             | 2 +-
 .../kafka-apicurio-producer-kamelet.camel.yaml                    | 2 +-
 .../kafka-batch-azure-storage-blob.camel.yaml                     | 2 --
 jbang/kafka-batch-s3/kafka-batch-s3.camel.yaml                    | 2 --
 jbang/kafka-health/consumer.camel.yaml                            | 2 --
 jbang/kafka-health/producer.camel.yaml                            | 2 --
 jbang/kafka-mq/kafka-mq.camel.yaml                                | 4 ++--
 jbang/kafka-mq/mq-log.camel.yaml                                  | 2 +-
 jbang/local-jar/foo.java                                          | 2 --
 jbang/main-profile/hello.camel.yaml                               | 2 --
 jbang/pipe/to_csv.java                                            | 1 -
 jbang/pipe/upper.camel.yaml                                       | 2 --
 jbang/postgresql-gcp-secret-refresh/postgresql-log.camel.yaml     | 2 --
 jbang/type-converter/MyRoute.java                                 | 2 --
 jbang/variables-eip/myapp.camel.yaml                              | 2 --
 jbang/variables/myapp.java                                        | 2 --
 jbang/xml-and-bean/route.camel.xml                                | 1 -
 45 files changed, 22 insertions(+), 78 deletions(-)

diff --git a/jbang/artemis/consumer.camel.yaml b/jbang/artemis/consumer.camel.yaml
index bdb071e..58615ff 100644
--- a/jbang/artemis/consumer.camel.yaml
+++ b/jbang/artemis/consumer.camel.yaml
@@ -1,5 +1,3 @@
-# camel-k: language=yaml
-
 # Write your routes here, for example:
 - from:
     uri: "jms:cheese"
diff --git a/jbang/artemis/producer.camel.yaml b/jbang/artemis/producer.camel.yaml
index 7a5109e..eceeb65 100644
--- a/jbang/artemis/producer.camel.yaml
+++ b/jbang/artemis/producer.camel.yaml
@@ -1,5 +1,3 @@
-# camel-k: language=yaml
-
 # Write your routes here, for example:
 - route:
     from:
diff --git a/jbang/aws-database-admin-secrets-refresh/sql-query.camel.yaml b/jbang/aws-database-admin-secrets-refresh/sql-query.camel.yaml
index 9bbff0e..b6a38c7 100644
--- a/jbang/aws-database-admin-secrets-refresh/sql-query.camel.yaml
+++ b/jbang/aws-database-admin-secrets-refresh/sql-query.camel.yaml
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=camel:aws-secrets-manager
+#//DEPS camel:aws-secrets-manager
 
 - route:
     from:
diff --git a/jbang/aws-s3-large-object/downloadFromS3.camel.yaml b/jbang/aws-s3-large-object/downloadFromS3.camel.yaml
index 3be2a05..50f4ee1 100644
--- a/jbang/aws-s3-large-object/downloadFromS3.camel.yaml
+++ b/jbang/aws-s3-large-object/downloadFromS3.camel.yaml
@@ -1,5 +1,3 @@
-# camel-k: language=yaml
-
 - from:
     uri: "aws2-s3://{{env:BUCKET_NAME}}"
     parameters:
diff --git a/jbang/aws-s3-large-object/uploadToS3.camel.yaml b/jbang/aws-s3-large-object/uploadToS3.camel.yaml
index addaa81..2a3a939 100644
--- a/jbang/aws-s3-large-object/uploadToS3.camel.yaml
+++ b/jbang/aws-s3-large-object/uploadToS3.camel.yaml
@@ -1,5 +1,3 @@
-# camel-k: language=yaml
-
 - from:
     uri: "file:./outbox"
     parameters:
diff --git a/jbang/aws-secrets-manager/timer-aws-secret-reloading.camel.yaml b/jbang/aws-secrets-manager/timer-aws-secret-reloading.camel.yaml
index 12645bc..d38200b 100644
--- a/jbang/aws-secrets-manager/timer-aws-secret-reloading.camel.yaml
+++ b/jbang/aws-secrets-manager/timer-aws-secret-reloading.camel.yaml
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=camel:aws-secrets-manager
+#//DEPS camel:aws-secrets-manager
 
 - route:
     from:
diff --git a/jbang/azure-eventhubs-kafka-azure-schema-registry/azure-kafka-schema-registry-producer.camel.yaml b/jbang/azure-eventhubs-kafka-azure-schema-registry/azure-kafka-schema-registry-producer.camel.yaml
index d95e798..08593b1 100644
--- a/jbang/azure-eventhubs-kafka-azure-schema-registry/azure-kafka-schema-registry-producer.camel.yaml
+++ b/jbang/azure-eventhubs-kafka-azure-schema-registry/azure-kafka-schema-registry-producer.camel.yaml
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=mvn:com.acme.example:azure-identity:0.1
+#//DEPS com.acme.example:azure-identity:0.1
 
 - beans:
   - name: order
diff --git a/jbang/azure-eventhubs-kafka-azure-schema-registry/kafka-kamelet-log.camel.yaml b/jbang/azure-eventhubs-kafka-azure-schema-registry/kafka-kamelet-log.camel.yaml
index 4b97c2d..4b61fdd 100644
--- a/jbang/azure-eventhubs-kafka-azure-schema-registry/kafka-kamelet-log.camel.yaml
+++ b/jbang/azure-eventhubs-kafka-azure-schema-registry/kafka-kamelet-log.camel.yaml
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=mvn:com.acme.example:azure-identity:0.1
+#//DEPS com.acme.example:azure-identity:0.1
 
 - beans:
   - name: defaultAzureCredential
diff --git a/jbang/azure-eventhubs-kafka-azure-schema-registry/kafka-log.camel.yaml b/jbang/azure-eventhubs-kafka-azure-schema-registry/kafka-log.camel.yaml
index a06278b..f47a611 100644
--- a/jbang/azure-eventhubs-kafka-azure-schema-registry/kafka-log.camel.yaml
+++ b/jbang/azure-eventhubs-kafka-azure-schema-registry/kafka-log.camel.yaml
@@ -15,10 +15,10 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=mvn:com.acme.example:azure-identity:0.1
-# camel-k: dependency=mvn:com.microsoft.azure:azure-schemaregistry-kafka-avro:1.1.1
-# camel-k: dependency=mvn:com.azure:azure-data-schemaregistry-apacheavro:1.1.4
-# camel-k: dependency=mvn:com.azure:azure-identity:1.9.0
+#//DEPS com.acme.example:azure-identity:0.1
+#//DEPS com.microsoft.azure:azure-schemaregistry-kafka-avro:1.1.1
+#//DEPS com.azure:azure-data-schemaregistry-apacheavro:1.1.4
+#//DEPS com.azure:azure-identity:1.9.0
 
 - beans:
   - name: defaultAzureCredential
diff --git a/jbang/azure-eventhubs-kafka-ibm-mq/kafka-mq.camel.yaml b/jbang/azure-eventhubs-kafka-ibm-mq/kafka-mq.camel.yaml
index ed950e0..42d4f36 100644
--- a/jbang/azure-eventhubs-kafka-ibm-mq/kafka-mq.camel.yaml
+++ b/jbang/azure-eventhubs-kafka-ibm-mq/kafka-mq.camel.yaml
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=mvn:com.ibm.mq:com.ibm.mq.allclient:9.2.5.0
+#//DEPS com.ibm.mq:com.ibm.mq.allclient:9.2.5.0
 
 - route:
     from:
diff --git a/jbang/azure-eventhubs-kafka-ibm-mq/mq-log.camel.yaml b/jbang/azure-eventhubs-kafka-ibm-mq/mq-log.camel.yaml
index 084b898..f76be6a 100644
--- a/jbang/azure-eventhubs-kafka-ibm-mq/mq-log.camel.yaml
+++ b/jbang/azure-eventhubs-kafka-ibm-mq/mq-log.camel.yaml
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=mvn:com.ibm.mq:com.ibm.mq.allclient:9.2.5.0
+#//DEPS com.ibm.mq:com.ibm.mq.allclient:9.2.5.0
 
 - route:
     from:
diff --git a/jbang/azure-key-vault-secrets-reloading/timer-azure-key-vault-reloading.camel.yaml b/jbang/azure-key-vault-secrets-reloading/timer-azure-key-vault-reloading.camel.yaml
index 2a71f2d..4fd1046 100644
--- a/jbang/azure-key-vault-secrets-reloading/timer-azure-key-vault-reloading.camel.yaml
+++ b/jbang/azure-key-vault-secrets-reloading/timer-azure-key-vault-reloading.camel.yaml
@@ -15,8 +15,6 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=camel:azure-key-vault
-
 - route:
     from:
       uri: "kamelet:timer-source"
diff --git a/jbang/azure-storage-blob-cdc/azure-storage-blob-cdc.camel.yaml b/jbang/azure-storage-blob-cdc/azure-storage-blob-cdc.camel.yaml
index a5dbef0..e306d03 100644
--- a/jbang/azure-storage-blob-cdc/azure-storage-blob-cdc.camel.yaml
+++ b/jbang/azure-storage-blob-cdc/azure-storage-blob-cdc.camel.yaml
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=camel:aws-secrets-manager
+#//DEPS camel:aws-secrets-manager
 
 - route:
     from:
diff --git a/jbang/custom-kamelet-local/route.camel.yaml b/jbang/custom-kamelet-local/route.camel.yaml
index d3907fb..6adb117 100644
--- a/jbang/custom-kamelet-local/route.camel.yaml
+++ b/jbang/custom-kamelet-local/route.camel.yaml
@@ -1,5 +1,3 @@
-# camel-k: language=yaml
-
 # Write your routes here, for example:
 - from:
     uri: "kamelet:wine-source"
diff --git a/jbang/custom-kamelet/user.java b/jbang/custom-kamelet/user.java
index bcc9f3d..152badc 100644
--- a/jbang/custom-kamelet/user.java
+++ b/jbang/custom-kamelet/user.java
@@ -1,5 +1,3 @@
-// camel-k: language=java
-
 import org.apache.camel.builder.RouteBuilder;
 
 public class user extends RouteBuilder {
diff --git a/jbang/dependency-injection/Echo.java b/jbang/dependency-injection/Echo.java
index 0d79569..ebf5a73 100755
--- a/jbang/dependency-injection/Echo.java
+++ b/jbang/dependency-injection/Echo.java
@@ -1,5 +1,3 @@
-// camel-k: language=java
-
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.context.annotation.Bean;
diff --git a/jbang/dependency-injection/Hello.java b/jbang/dependency-injection/Hello.java
index 8a7b9a3..e532de8 100755
--- a/jbang/dependency-injection/Hello.java
+++ b/jbang/dependency-injection/Hello.java
@@ -1,5 +1,3 @@
-// camel-k: language=java
-
 import org.apache.camel.builder.RouteBuilder;
 
 public class Hello extends RouteBuilder {
diff --git a/jbang/error-handler/foo.camel.yaml b/jbang/error-handler/foo.camel.yaml
index de4f6e3..458d8e2 100644
--- a/jbang/error-handler/foo.camel.yaml
+++ b/jbang/error-handler/foo.camel.yaml
@@ -1,5 +1,3 @@
-# camel-k: language=yaml
-
 - errorHandler:
     deadLetterChannel:
       deadLetterUri: "log:dead"
diff --git a/jbang/gcp-secret-manager-reloading/timer-gcp-secret-reloading.camel.yaml b/jbang/gcp-secret-manager-reloading/timer-gcp-secret-reloading.camel.yaml
index 2961b29..5214959 100644
--- a/jbang/gcp-secret-manager-reloading/timer-gcp-secret-reloading.camel.yaml
+++ b/jbang/gcp-secret-manager-reloading/timer-gcp-secret-reloading.camel.yaml
@@ -15,8 +15,6 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=camel:google-secret-manager
-
 - route:
     from:
       uri: "kamelet:timer-source"
diff --git a/jbang/google-secret-manager/timer-gcp-sec-finnhub.camel.yaml b/jbang/google-secret-manager/timer-gcp-sec-finnhub.camel.yaml
index 0563a7a..2883f07 100644
--- a/jbang/google-secret-manager/timer-gcp-sec-finnhub.camel.yaml
+++ b/jbang/google-secret-manager/timer-gcp-sec-finnhub.camel.yaml
@@ -15,8 +15,6 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=camel:google-secret-manager
-
 - route:
     from:
       uri: "kamelet:timer-source"
diff --git a/jbang/hello-java/Hey.java b/jbang/hello-java/Hey.java
index c6f5a3b..5d413dd 100755
--- a/jbang/hello-java/Hey.java
+++ b/jbang/hello-java/Hey.java
@@ -1,12 +1,9 @@
-// use modeline to configure properties directly in the same source file
-// camel-k: language=java name=Cool property=period=1000
-
 public class Hey extends org.apache.camel.builder.RouteBuilder {
 
   @Override
   public void configure() throws Exception {
       // Write your routes here, for example:
-      from("timer:java?period={{period}}")
+      from("timer:java?period=1000")
         .routeId("java")
         .process(e -> {
            e.getMessage().setBody("Hello from Camel");
diff --git a/jbang/hello-xml/hi.xml b/jbang/hello-xml/hi.xml
index 290384f..2c4b930 100644
--- a/jbang/hello-xml/hi.xml
+++ b/jbang/hello-xml/hi.xml
@@ -1,5 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- camel-k: language=xml -->
 
 <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://camel.apache.org/schema/spring"
diff --git a/jbang/hello-yaml/hello.camel.yaml b/jbang/hello-yaml/hello.camel.yaml
index ba311b9..267e6e1 100644
--- a/jbang/hello-yaml/hello.camel.yaml
+++ b/jbang/hello-yaml/hello.camel.yaml
@@ -1,5 +1,3 @@
-# camel-k: language=yaml
-
 # Write your routes here, for example:
 - from:
     uri: "timer:yaml"
diff --git a/jbang/http-streaming/my-stream.camel.yaml b/jbang/http-streaming/my-stream.camel.yaml
index f1d17f8..907570d 100644
--- a/jbang/http-streaming/my-stream.camel.yaml
+++ b/jbang/http-streaming/my-stream.camel.yaml
@@ -1,5 +1,3 @@
-# camel-k: language=yaml
-
 - from:
     uri: "stream:http"
     parameters:
diff --git a/jbang/kafka-apicurio-schema-registry/kafka-apicurio-kamelet.camel.yaml b/jbang/kafka-apicurio-schema-registry/kafka-apicurio-kamelet.camel.yaml
index 0938579..100041a 100644
--- a/jbang/kafka-apicurio-schema-registry/kafka-apicurio-kamelet.camel.yaml
+++ b/jbang/kafka-apicurio-schema-registry/kafka-apicurio-kamelet.camel.yaml
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=mvn:com.acme.example:kafka-apicurio-producer:0.1
+#//DEPS com.acme.example:kafka-apicurio-producer:0.1
 
 - beans:
   - name: order
diff --git a/jbang/kafka-apicurio-schema-registry/kafka-apicurio-producer-kamelet.camel.yaml b/jbang/kafka-apicurio-schema-registry/kafka-apicurio-producer-kamelet.camel.yaml
index d615951..4de57d9 100644
--- a/jbang/kafka-apicurio-schema-registry/kafka-apicurio-producer-kamelet.camel.yaml
+++ b/jbang/kafka-apicurio-schema-registry/kafka-apicurio-producer-kamelet.camel.yaml
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=mvn:com.acme.example:kafka-apicurio-producer:0.1
+#//DEPS com.acme.example:kafka-apicurio-producer:0.1
 
 - beans:
   - name: order
diff --git a/jbang/kafka-apicurio-schema-registry/kafka-log.camel.yaml b/jbang/kafka-apicurio-schema-registry/kafka-log.camel.yaml
index 58fb7d2..fec5de1 100644
--- a/jbang/kafka-apicurio-schema-registry/kafka-log.camel.yaml
+++ b/jbang/kafka-apicurio-schema-registry/kafka-log.camel.yaml
@@ -15,8 +15,8 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=mvn:com.acme.example:kafka-apicurio-producer:0.1
-# camel-k: dependency=mvn:io.apicurio:apicurio-registry-serdes-avro-serde:2.4.12.Final
+#//DEPS com.acme.example:kafka-apicurio-producer:0.1
+#//DEPS io.apicurio:apicurio-registry-serdes-avro-serde:2.4.12.Final
 
 - beans:
   - name: order
diff --git a/jbang/kafka-apicurio-secured-json-schema-registry/kafka-apicurio-kamelet.camel.yaml b/jbang/kafka-apicurio-secured-json-schema-registry/kafka-apicurio-kamelet.camel.yaml
index cd8eec1..dde5f3d 100644
--- a/jbang/kafka-apicurio-secured-json-schema-registry/kafka-apicurio-kamelet.camel.yaml
+++ b/jbang/kafka-apicurio-secured-json-schema-registry/kafka-apicurio-kamelet.camel.yaml
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=mvn:com.acme.example:kafka-apicurio-producer:0.1
+#//DEPS com.acme.example:kafka-apicurio-producer:0.1
 
 - route:
     id: "kafka-to-apicurio-log"
diff --git a/jbang/kafka-apicurio-secured-schema-registry/kafka-apicurio-kamelet.camel.yaml b/jbang/kafka-apicurio-secured-schema-registry/kafka-apicurio-kamelet.camel.yaml
index 2a7f5bc..b9ac075 100644
--- a/jbang/kafka-apicurio-secured-schema-registry/kafka-apicurio-kamelet.camel.yaml
+++ b/jbang/kafka-apicurio-secured-schema-registry/kafka-apicurio-kamelet.camel.yaml
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=mvn:com.acme.example:kafka-apicurio-producer:0.1
+#//DEPS com.acme.example:kafka-apicurio-producer:0.1
 
 - beans:
   - name: order
diff --git a/jbang/kafka-apicurio-secured-schema-registry/kafka-apicurio-producer-kamelet.camel.yaml b/jbang/kafka-apicurio-secured-schema-registry/kafka-apicurio-producer-kamelet.camel.yaml
index ea09f9f..e36e5fe 100644
--- a/jbang/kafka-apicurio-secured-schema-registry/kafka-apicurio-producer-kamelet.camel.yaml
+++ b/jbang/kafka-apicurio-secured-schema-registry/kafka-apicurio-producer-kamelet.camel.yaml
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=mvn:com.acme.example:kafka-apicurio-producer:0.1
+#//DEPS com.acme.example:kafka-apicurio-producer:0.1
 
 - beans:
   - name: order
diff --git a/jbang/kafka-batch-azure-storage-blob/kafka-batch-azure-storage-blob.camel.yaml b/jbang/kafka-batch-azure-storage-blob/kafka-batch-azure-storage-blob.camel.yaml
index 5ec4cb8..abe1aa3 100644
--- a/jbang/kafka-batch-azure-storage-blob/kafka-batch-azure-storage-blob.camel.yaml
+++ b/jbang/kafka-batch-azure-storage-blob/kafka-batch-azure-storage-blob.camel.yaml
@@ -15,8 +15,6 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=camel:kafka
-
 - route:
     id: "kafka-to-azure-storage-blob"
     from:
diff --git a/jbang/kafka-batch-s3/kafka-batch-s3.camel.yaml b/jbang/kafka-batch-s3/kafka-batch-s3.camel.yaml
index 8db16e4..ca88b88 100644
--- a/jbang/kafka-batch-s3/kafka-batch-s3.camel.yaml
+++ b/jbang/kafka-batch-s3/kafka-batch-s3.camel.yaml
@@ -15,8 +15,6 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=camel:kafka
-
 - route:
     id: "kafka-to-log"
     from:
diff --git a/jbang/kafka-health/consumer.camel.yaml b/jbang/kafka-health/consumer.camel.yaml
index 173c973..b5c5b22 100644
--- a/jbang/kafka-health/consumer.camel.yaml
+++ b/jbang/kafka-health/consumer.camel.yaml
@@ -1,5 +1,3 @@
-# camel-k: language=yaml
-
 - from:
     uri: "kafka:foobar?brokers=localhost:9092"
     steps:
diff --git a/jbang/kafka-health/producer.camel.yaml b/jbang/kafka-health/producer.camel.yaml
index b15adee..b12266a 100644
--- a/jbang/kafka-health/producer.camel.yaml
+++ b/jbang/kafka-health/producer.camel.yaml
@@ -1,5 +1,3 @@
-# camel-k: language=yaml
-
 - from:
     uri: "kamelet:chuck-norris-source"
     steps:
diff --git a/jbang/kafka-mq/kafka-mq.camel.yaml b/jbang/kafka-mq/kafka-mq.camel.yaml
index 1298e70..aff3c66 100644
--- a/jbang/kafka-mq/kafka-mq.camel.yaml
+++ b/jbang/kafka-mq/kafka-mq.camel.yaml
@@ -15,8 +15,8 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=mvn:com.ibm.mq:com.ibm.mq.allclient:9.2.5.0
-# camel-k: dependency=mvn:org.apache.camel.kamelets:camel-kamelets-utils:3.20.1.1
+#//DEPS com.ibm.mq:com.ibm.mq.allclient:9.2.5.0
+#//DEPS org.apache.camel.kamelets:camel-kamelets-utils:3.20.1.1
 
 - route:
     from:
diff --git a/jbang/kafka-mq/mq-log.camel.yaml b/jbang/kafka-mq/mq-log.camel.yaml
index 084b898..f76be6a 100644
--- a/jbang/kafka-mq/mq-log.camel.yaml
+++ b/jbang/kafka-mq/mq-log.camel.yaml
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=mvn:com.ibm.mq:com.ibm.mq.allclient:9.2.5.0
+#//DEPS com.ibm.mq:com.ibm.mq.allclient:9.2.5.0
 
 - route:
     from:
diff --git a/jbang/local-jar/foo.java b/jbang/local-jar/foo.java
index 3add8e1..5d83edc 100644
--- a/jbang/local-jar/foo.java
+++ b/jbang/local-jar/foo.java
@@ -1,5 +1,3 @@
-// camel-k: language=java
-
 import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
diff --git a/jbang/main-profile/hello.camel.yaml b/jbang/main-profile/hello.camel.yaml
index 48e5673..9906d4a 100644
--- a/jbang/main-profile/hello.camel.yaml
+++ b/jbang/main-profile/hello.camel.yaml
@@ -1,5 +1,3 @@
-# camel-k: language=yaml
-
 # Write your routes here, for example:
 - from:
     uri: "timer:yaml"
diff --git a/jbang/pipe/to_csv.java b/jbang/pipe/to_csv.java
index 8fd7f4a..18273fd 100755
--- a/jbang/pipe/to_csv.java
+++ b/jbang/pipe/to_csv.java
@@ -1,5 +1,4 @@
 ///usr/bin/env jbang --quiet camel@apache/camel pipe "$0" "$@" ; exit $?
-// camel-k: language=java
 
 import org.apache.camel.builder.AggregationStrategies;
 import org.apache.camel.builder.RouteBuilder;
diff --git a/jbang/pipe/upper.camel.yaml b/jbang/pipe/upper.camel.yaml
index 85fdb39..2bde9b0 100755
--- a/jbang/pipe/upper.camel.yaml
+++ b/jbang/pipe/upper.camel.yaml
@@ -1,7 +1,5 @@
 ///usr/bin/env jbang --quiet camel@apache/camel pipe "$0" "$@" ; exit $?
 ---
-# camel-k: language=yaml
-
 # Will upper-case the input
 - from:
     uri: "stream:in"
diff --git a/jbang/postgresql-gcp-secret-refresh/postgresql-log.camel.yaml b/jbang/postgresql-gcp-secret-refresh/postgresql-log.camel.yaml
index c983fcf..9918d75 100644
--- a/jbang/postgresql-gcp-secret-refresh/postgresql-log.camel.yaml
+++ b/jbang/postgresql-gcp-secret-refresh/postgresql-log.camel.yaml
@@ -15,8 +15,6 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-# camel-k: dependency=camel:google-secret-manager
-
 - route:
     from:
       uri: "kamelet:postgresql-source"
diff --git a/jbang/type-converter/MyRoute.java b/jbang/type-converter/MyRoute.java
index 0a7c9a3..7fd4a9b 100644
--- a/jbang/type-converter/MyRoute.java
+++ b/jbang/type-converter/MyRoute.java
@@ -1,5 +1,3 @@
-// camel-k: language=java
-
 import org.apache.camel.builder.RouteBuilder;
 
 public class MyRoute extends RouteBuilder {
diff --git a/jbang/variables-eip/myapp.camel.yaml b/jbang/variables-eip/myapp.camel.yaml
index 3941cac..501698a 100644
--- a/jbang/variables-eip/myapp.camel.yaml
+++ b/jbang/variables-eip/myapp.camel.yaml
@@ -1,5 +1,3 @@
-# camel-k: language=yaml
-
 # Write your routes here, for example:
 - from:
     uri: "timer:beers"
diff --git a/jbang/variables/myapp.java b/jbang/variables/myapp.java
index f4374c5..7bd86f7 100644
--- a/jbang/variables/myapp.java
+++ b/jbang/variables/myapp.java
@@ -1,5 +1,3 @@
-// camel-k: language=java
-
 import org.apache.camel.builder.RouteBuilder;
 
 public class myapp extends RouteBuilder {
diff --git a/jbang/xml-and-bean/route.camel.xml b/jbang/xml-and-bean/route.camel.xml
index 2480fe7..e15094d 100644
--- a/jbang/xml-and-bean/route.camel.xml
+++ b/jbang/xml-and-bean/route.camel.xml
@@ -1,5 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- camel-k: language=xml -->
 
 <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://camel.apache.org/schema/spring"


(camel-kamelets-examples) 01/02: Polished for Camel 4.12

Posted by da...@apache.org.
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-kamelets-examples.git

commit 673cf8c2a75c61abc739080a4bf75b06943fae2d
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu May 8 10:34:10 2025 +0200

    Polished for Camel 4.12
---
 jbang/open-api-contract-first/README.md           | 8 ++++----
 jbang/open-api-contract-first/petstore.camel.yaml | 1 +
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/jbang/open-api-contract-first/README.md b/jbang/open-api-contract-first/README.md
index 621f024..bf59b5e 100644
--- a/jbang/open-api-contract-first/README.md
+++ b/jbang/open-api-contract-first/README.md
@@ -22,7 +22,7 @@ camel run *
 Then you can test by calling to get pet with id 123:
 
 ```
-$ curl -i http://localhost:8080/api/v3/pet/123
+$ curl -i http://localhost:8080/myapi/pet/123
 HTTP/1.1 200 OK
 Accept: */*
 User-Agent: curl/8.1.2
@@ -37,7 +37,7 @@ Content-Type: application/json
 If you get a pet with any other ID than 123, such as 444, you will get the response from the example that are inlined in the OpenAPI specification file `petstore-v3.json`.
 
 ```
-$ curl -i http://localhost:8080/api/v3/pet/444
+$ curl -i http://localhost:8080/myapi/pet/444
 HTTP/1.1 200 OK
 Accept: */*
 User-Agent: curl/8.1.2
@@ -55,13 +55,13 @@ The example will return an empty response if you request non implemented API end
 The petstore has 18 apis, and this example has none implemented.
 
 The returned response is loaded from disk in the `camel-mock` folder, as you can see it has pet/123.json as a file,
-that will be returned when you call `/api/v3/pet/123`.
+that will be returned when you call `/myapi/pet/123`.
 
 ## API Contract
 
 The API contract is made public (see source), which can be accessed via:
 
 ```
-$ curl -i http://localhost:8080/api-doc
+$ curl -i http://localhost:8080/myapi/api-doc
 ```
 
diff --git a/jbang/open-api-contract-first/petstore.camel.yaml b/jbang/open-api-contract-first/petstore.camel.yaml
index 63241d0..d7b81b7 100644
--- a/jbang/open-api-contract-first/petstore.camel.yaml
+++ b/jbang/open-api-contract-first/petstore.camel.yaml
@@ -1,6 +1,7 @@
 - restConfiguration:
     clientRequestValidation: true
     apiContextPath: api-doc
+    contextPath: /myapi
 - rest:
     openApi:
       specification: petstore-v3.json