Unfortunately the docs are still TODO
However there are some helpful links out and about:
A Groovy based Maven project can come in at least two different packaging/artifact types: groovy-jar and war . For more information about groovy-jar packaging, see http://mojo.codehaus.org/groovy/groovy-maven-plugin/mixed-compilation.html This document contains two sets of quick start instructions depending on the packaging/archive type the Maven project is to build:
- Option A: Creating a new groovy-jar Package Groovy-based Module Maven Project (Non-web)
- Option B: Creating a new war Package Groovy-based Module Maven Project (Web)
- Bonus: Add Some Ajax Examples with GSP as the Server-side
And another example using Processing.org exported code:
This Quick Start Guide will demonstrate how to create, build and run two Processing sketches written in Groovy incorporated into a project that uses Maven to build. According to the book “Groovy in Action”, Groovy can be run in either direct mode or precompiled mode . In this guide, one Groovy script will be compiled to a Java class file (precompiled mode) and the other Groovy script will be left uncompiled (direct mode).