Skip to content

Instantly share code, notes, and snippets.

@craigburke
Last active Aug 2, 2016
Embed
What would you like to do?
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