Greenmail been is null and can't be autowired.
I've fixed this problem and will send pull request later. But I'm not sure why this error happens, so I want to describe it.
It looks like something changed in Spring beans DSL.
As I know Groovy lang variable it is referenced to first argument of closure. Maybe now there is more args, or something else, but now it not working.
If you define closure arguments directly all works as expected:
Greenmail been is null and can't be autowired. I've fixed this problem and will send pull request later. But I'm not sure why this error happens, so I want to describe it. It looks like something changed in Spring beans DSL.
This code not work in Grails 2.2.2 and 2.2.3
As I know Groovy lang variable
it
is referenced to first argument of closure. Maybe now there is more args, or something else, but now it not working. If you define closure arguments directly all works as expected:
Same problem is in dumbster plugin.