i’ve been looking several guidance about this in Grails official documentation site here
but still i couldn’t make it runs well.
Supposed i created two plugin. myplugin-a and myplugin-b .
Each plugin had their own bootstrap that will execute when main app which install those plugins runs. I had include this line of code in MypluginBGrailsPlugin.groovy
def loadAfter = ['myplugin-a']
but still the plugin runs the bootstrap on each plugins with the following order :
myplugin-b -> myplugin-a .
Did i miss something here ?
Any help would be appreciated
You need to use the camel-case syntax of the plugin name:
def loadAfter = ['mypluginA']. See https://github.com/grails-plugins/grails-hibernate-plugin/blob/master/HibernateGrailsPlugin.groovy for an example in the Hibernate plugin