JVM since1.0.0 Native since3.2.0
Evaluate a Groovy script
Please refer to the above link for usage and configuration details.
Or add the coordinates to your existing project:
<dependency> <groupId>org.apache.camel.quarkus</groupId> <artifactId>camel-quarkus-groovy</artifactId> </dependency>
Check the User guide for more information about writing Camel Quarkus applications.
Due to some limitations in GraalVM that prevent to execute even basic scripts in native mode, the compilation of the Groovy expressions is made with the static compilation enabled which means that the types used in your expression must be known at compile time. Please refer to the Groovy documentation for more details.