I was thinking it might be quite good if the grails plugin took care
of this for you.
It could inject ,via a easyb plugin, the GrailsApplication so you
could access the Grails runtime like you do when creating Grails
plugins.
That way you should be able to get services if you needed them by
accessing application context. It would also expose other
functionality as defined in the Grails JDocs for GrailsApplication.
After installing the grails easyb plugin you could maybe get the
application context via GrailsApplication to get any service you
wanted.
e.g
before "create data model",{
def authenticateService = application.getMainContext().getBean
("AuthenticateService")
.....
}
Not sure if its possible or how easy it is to do.
Ideally some form of dependency injection would be better but I`m not
sure if you could do this into the easyb script