Skip to content

Instantly share code, notes, and snippets.

@craigburke
Last active August 2, 2016 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigburke/926e367efbfb27f12a824649f9848a98 to your computer and use it in GitHub Desktop.
Save craigburke/926e367efbfb27f12a824649f9848a98 to your computer and use it in GitHub Desktop.
Grails 3 / Asset Pipeline config
import groovy.json.JsonOutput
ext {
// Config used by bootRun and assetCompile
assetConfig = [
angular: [ moduleNameBase: 'foobar' ]
]
}
assets {
configOptions = assetConfig
}
bootRun {
systemProperty 'SPRING_APPLICATION_JSON', """{"grails": {"assets":${JsonOutput.toJson(assetConfig)}}}"""
}
integrationTest {
systemProperty 'SPRING_APPLICATION_JSON', """{"grails": {"assets":${JsonOutput.toJson(assetConfig)}}}"""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment