gnodet-bot commented on code in PR #31214:
URL: https://github.com/apache/camel/pull/31214#discussion_r4761760269


##########
dsl/camel-dsl-modeline/src/main/docs/dsl-modeline.adoc:
##########
@@ -13,5 +13,51 @@
 
 == Camel CLI
 
-There is support for 
https://www.jbang.dev/documentation/guide/latest/dependencies.html[JBang 
dependencies] using the `//DEPS` comments style,
-when using Camel CLI.
+The Camel CLI supports 
https://www.jbang.dev/documentation/guide/latest/dependencies.html[JBang 
dependencies] in the
+`//DEPS` comment style: a route file can name the extra Maven dependencies it 
needs, and `camel run` downloads them and
+adds them to the classpath.
+
+A `//DEPS` line is a comment, so it is written in the comment style of the 
file. In a Java route:
+
+[source,java]
+----
+//DEPS com.example:my-library:1.0
+
+import org.apache.camel.builder.RouteBuilder;
+
+public class MyRoute extends RouteBuilder {
+
+    @Override
+    public void configure() throws Exception {
+        from("timer:tick")
+            .to("log:tick");
+    }
+}
+----
+
+And in a YAML route, behind `#`:
+

Review Comment:
   💬 **Minor clarity nit**: "behind `#`" is an unusual phrasing. "using the `#` 
comment prefix" reads more naturally:
   
   ```suggestion
   And in a YAML route, using the `#` comment prefix:
   ```



##########
dsl/camel-dsl-modeline/src/main/docs/dsl-modeline.adoc:
##########
@@ -13,5 +13,51 @@
 
 == Camel CLI
 
-There is support for 
https://www.jbang.dev/documentation/guide/latest/dependencies.html[JBang 
dependencies] using the `//DEPS` comments style,
-when using Camel CLI.
+The Camel CLI supports 
https://www.jbang.dev/documentation/guide/latest/dependencies.html[JBang 
dependencies] in the
+`//DEPS` comment style: a route file can name the extra Maven dependencies it 
needs, and `camel run` downloads them and
+adds them to the classpath.
+
+A `//DEPS` line is a comment, so it is written in the comment style of the 
file. In a Java route:
+
+[source,java]
+----
+//DEPS com.example:my-library:1.0
+
+import org.apache.camel.builder.RouteBuilder;
+
+public class MyRoute extends RouteBuilder {
+
+    @Override
+    public void configure() throws Exception {
+        from("timer:tick")
+            .to("log:tick");
+    }
+}
+----
+
+And in a YAML route, behind `#`:
+
+[source,yaml]
+----
+#//DEPS com.example:my-library:1.0
+#//DEPS com.example:other-library:2.1
+
+- route:
+    from:
+      uri: timer:tick
+      steps:
+        - to:
+            uri: log:tick
+----
+
+The rules:
+
+* Each dependency is a Maven coordinate `groupId:artifactId:version`. One line 
can name several, separated by spaces.
+* A coordinate that ends with `@pom` (a BOM in JBang) is skipped.

Review Comment:
   💬 **Minor grammar nit**: "name several" → "list several" (or recast as 
"Multiple dependencies on one line are separated by spaces"):
   
   ```suggestion
   * Each dependency is a Maven coordinate `groupId:artifactId:version`. One 
line can list several, separated by spaces.
   ```



-- 
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]

Reply via email to