Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
defaultPackage ignored in application.groovy on 3.1.7 #10005
This is using Grails 3.1.7 on JDK8 on Windows 8.1. Initially reported on StackOverflow:
The configuration setting grails.codegen.defaultPackage does not take effect when in application.groovy as such:
The app name is not used as a default, either:
If you place this in application.yml, it works:
While it's clear that YAML is the default, the Grails configuration docs describe it as "an alternative format," suggesting that everything should still work in application.groovy.
If that's not the case, the docs should be updated to strike that phrase and include a list of configuration settings that only work in application.yml.