davsclaus opened a new issue, #111: URL: https://github.com/apache/camel-kamelets-examples/issues/111
Camel 4.25 deprecates modeline, the JBang style `//DEPS` lines in route files that `camel run` reads to download extra dependencies ([CAMEL-28011](https://issues.apache.org/jira/browse/CAMEL-28011), apache/camel#31216). It will be removed in a later release, and from 4.25 `camel run` logs a WARN for each route file with `//DEPS` lines. The examples should declare their dependencies the supported way instead: ```properties # application.properties next to the routes camel.jbang.dependencies=com.ibm.mq:com.ibm.mq.allclient:9.4.1.0,com.azure:azure-identity:1.18.1 ``` or with `camel run --dep group:artifact:version` in the README of the example. These 18 route files use `//DEPS` (or `#//DEPS` in YAML): - `jbang/aws-bedrock-ingestion/BedrockPrompt.java` - `jbang/aws-database-admin-secrets-refresh/sql-query.camel.yaml` - `jbang/aws-secrets-manager/timer-aws-secret-reloading.camel.yaml` - `jbang/azure-eventhubs-kafka-azure-schema-registry/azure-kafka-schema-registry-producer.camel.yaml` - `jbang/azure-eventhubs-kafka-azure-schema-registry/kafka-kamelet-log.camel.yaml` - `jbang/azure-eventhubs-kafka-azure-schema-registry/kafka-log.camel.yaml` - `jbang/azure-eventhubs-kafka-ibm-mq/kafka-mq.camel.yaml` - `jbang/azure-eventhubs-kafka-ibm-mq/mq-log.camel.yaml` - `jbang/azure-storage-blob-cdc/azure-storage-blob-cdc.camel.yaml` - `jbang/kafka-apicurio-schema-registry/kafka-apicurio-kamelet.camel.yaml` - `jbang/kafka-apicurio-schema-registry/kafka-apicurio-producer-kamelet.camel.yaml` - `jbang/kafka-apicurio-schema-registry/kafka-log.camel.yaml` - `jbang/kafka-apicurio-secured-json-schema-registry/kafka-apicurio-kamelet.camel.yaml` - `jbang/kafka-apicurio-secured-schema-registry/kafka-apicurio-kamelet.camel.yaml` - `jbang/kafka-apicurio-secured-schema-registry/kafka-apicurio-producer-kamelet.camel.yaml` - `jbang/kafka-mq/kafka-mq.camel.yaml` - `jbang/kafka-mq/mq-log.camel.yaml` - `jbang/jbang-edit/foo.java` Notes: - `jbang/jbang-edit/foo.java` shows `jbang edit`, which reads `//DEPS` itself to set up the IDE project. That is JBang's own feature and can stay, but the README could say that `camel run` reads them only through the deprecated modeline. - Several examples depend on a local helper jar (`com.acme.example:...`) built by the example; it can be listed in `camel.jbang.dependencies` the same way. - `jbang/azure-eventhubs-kafka-azure-schema-registry` also has its own `DefaultAzureCredentialWrapper`. The credential can be a YAML bean with `builderClass: com.azure.identity.DefaultAzureCredentialBuilder` instead (`camel-azure-schema-registry` is being deprecated too, [CAMEL-28010](https://issues.apache.org/jira/browse/CAMEL-28010)). - `jbang/knative` and `jbang/open-api-contract-first` already use `camel.jbang.dependencies`. _Claude Code on behalf of davsclaus_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
