Turns out that we can use the "loadAfter" property in the PluginNameGrailsPlugin.groovy class.
By specifying a list of plugin names here, we can control the order that grails will load your applications. In my instance, my plugin was sometimes being loaded before the controllers and groovy pages plugins. I managed to consistently get my plugin to load after these two using the following:
def loadAfter = ['controllers', 'groovyPages']
See the official documentation for more information.
0 comments:
Post a Comment