I want to include the Grails application name in some of my configuration settings in grails-app/Config.groovy. I\'ve tried many ways without success. For example
grails-app/Config.groovy
To get the appName in a config file that you're including with grails.config.locations you can use:
grails.config.locations
appName = grails.util.Metadata.current.'app.name'