I am happy to finally push the change to groovy compiler so it allows users to mix and match the groovy source with multiple extensions of their choice – http://tinyurl.com/376f6mj.
For example, Groovy++ has *.gpp and *.grunit files. You may want to have *.g or *.gscript, or *.gdsl or *.gspec, or whatever else – and have a mix of any number of them.
All that needs to be done to use this feature is to have your extensions listed down in the file META-INF/services/org.codehaus.groovy.source.Extensions and make it available on the classpath and the groovy compiler will do the rest.
Here is a sample of how the file may look like:
# Format: one extension on each line without the leading “*.”