oyvinmar/grails-closure-compiler — pull request #2 by madchicken (2012-10-31 09:33:39+00:00)
Title: Added configuration for closure compiler options (both global and per file)

This allows to add compiler options in the configuration. I also used default resource mapper config object to adhere other plugin standard.

Now it's possible to add custom compiler configuration by adding them to the configuration:

grails.resources.mappers.googleclosurecompiler.compilation_level = 'SIMPLE_OPTIMIZATIONS'
grails.resources.mappers.googleclosurecompiler.compilerOptions = [
languageIn: CompilerOptions.LanguageMode.ECMASCRIPT5
]

If you want specify compiler options for a single file, it can be done using the attrs map in the ApplicationResource file:

resource url: 'js/ember.js', attrs: [googlecompiler: [languageIn: CompilerOptions.LanguageMode.ECMASCRIPT5]]