I took the old configuration:
grails.gorm.default.constraints = { \'*\' (nullable: true, blank: true) }
... and put it in the app
app
application.groovy is the place to do that. Groovy code in a .yml config file is invalid and not supported.
application.groovy
.yml