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 8676dc136975 chore: the groovy classpath message no longer suggests
//DEPS (#26827)
8676dc136975 is described below
commit 8676dc136975ae36c2465cf321b503ebbf3a1266
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Sep 24 10:52:06 2026 +0200
chore: the groovy classpath message no longer suggests //DEPS (#26827)
//DEPS is not the recommended way to add a dependency. The message keeps
the two that are: a Maven dependency, or camel.jbang.dependencies in
application.properties with the Camel CLI.
Claude-Session: https://claude.ai/code/session_01Bp3538HRBPMQkb5ta9xRaj
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
---
.../java/org/apache/camel/language/groovy/GroovyLanguage.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git
a/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/GroovyLanguage.java
b/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/GroovyLanguage.java
index 0eadc9bd5445..667bc5adb7fc 100644
---
a/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/GroovyLanguage.java
+++
b/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/GroovyLanguage.java
@@ -298,10 +298,11 @@ public class GroovyLanguage extends TypedLanguageSupport
implements ScriptingLan
cls = (end > 0 ? cls.substring(0, end) : cls).trim();
return new RuntimeCamelException(
"Groovy cannot resolve the class " + cls + ": it is not on
the classpath. Add the library that"
- + " provides it as a dependency
of the application (a Maven dependency;"
- + " with the Camel CLI
camel.jbang.dependencies=groupId:artifactId:version"
- + " in application.properties, or
a //DEPS line); a class of your own"
- + " goes in a .groovy or .java
file next to the route.",
+ + " provides it as a dependency
of the application: a Maven dependency,"
+ + " or with the Camel CLI"
+ + "
camel.jbang.dependencies=groupId:artifactId:version in"
+ + " application.properties. A
class of your own goes in a .groovy or"
+ + " .java file next to the
route.",
e);
}
return e;