grails / grails-mail

The Grails Mail Plugin
https://grails.github.io/grails-mail/
Apache License 2.0
15 stars 25 forks source link

Intellij IDEA: "default" is a Groovy 3.0 keyword #39

Open robertoschwald opened 5 years ago

robertoschwald commented 5 years ago

If you want to define the plugin config in [application|runtime].groovy in a block, Intellij IDEA complains " Modifier 'default' is available with Groovy 3.0 or later".

Maybe rename default to "defaults" to get rid of this config property error.

Example:

grails {
   mail {
     default {
        from = "someone@mydomain.local"
     }
   }
}
erichelgeson commented 5 years ago

This will be a TODO for grails 5 support in the future.

sbglasius commented 5 months ago

Or you could just single-quote 'default' and the error goes away