Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

There are a number of ways to mix Groovy and Clojure. You can access Clojure classes from Groovy and vice versa by pre-compiling.

You can access via Java 6's scripting API: JSR-223 access to other JVM languages

You can also get access to Clojure's classes from Groovy, e.g. (for Groovy 1.7 snapshot):

Or interact via creating a new Process (again for Groovy 1.7 snapshot):

Another option is to use the Clojure API like this:

There is also a Clojure plugin for Grails which provides easy access to execute clojure code from any Grails artifact (controllers, taglibs, services etc...):

  • No labels