Skip to content

Instantly share code, notes, and snippets.

@musketyr
Created August 3, 2021 10:37
Show Gist options
  • Save musketyr/e97853679168d56173796873fb0636fe to your computer and use it in GitHub Desktop.
Save musketyr/e97853679168d56173796873fb0636fe to your computer and use it in GitHub Desktop.
Map conventions = [
disable : false,
whiteListScripts : true,
disableDynamicCompile : false,
dynamicCompileWhiteList : [
'UrlMappings',
'Application',
'BootStrap',
'resources',
'org.grails.cli'
],
limitCompileStaticExtensions: false,
defAllowed : false, // For controllers you can use Object in place of def, and in Domains add Closure to constraints/mappings closure fields.
skipDefaultPackage : true, // For GSP files
]
System.setProperty(
'enterprise.groovy.conventions',
"conventions=${conventions.inspect()}"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment