register groovy module extension from plugin

32 views
Skip to first unread message

Elmar Kretzer

unread,
Jan 14, 2015, 4:07:33 AM1/14/15
to grails-de...@googlegroups.com
Hi there,

is there any best practice on how to provide groovy module extensions from a plugin?

Right now on grails 2.4.4 it seems like DefaultGrailsApplication.initialiseGroovyExtensionModules does not take care of extensions provided via plugin.
Is there any configuration necessary in order to provide this functionality?

Anyone knows of any plugin that provides extensions?

Thanks for any help.

Elmar

Sergio Michels

unread,
Jan 27, 2015, 10:45:26 AM1/27/15
to grails-de...@googlegroups.com
If you enable debug for the grails.core package, the message of the loaded classes comes before or after your plugin is loaded?


Maybe you need to play with the loadBefore/loadAfter options in your plugin descriptor.



--
Sérgio Michels

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/71c7e423-c660-4ff8-bc9d-f340bf7d07ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Elmar Kretzer

unread,
Jan 29, 2015, 4:54:22 AM1/29/15
to grails-de...@googlegroups.com
We solved the problem by putting the ExtensionModule in a regular dependency, not a plugin.
Was a valid solution in this situation.

The extensions are in a basic gradle project, which is ok as the extension are mainly on standard types.



Am Dienstag, 27. Januar 2015 16:45:26 UTC+1 schrieb Sergio Michels:
If you enable debug for the grails.core package, the message of the loaded classes comes before or after your plugin is loaded?


Maybe you need to play with the loadBefore/loadAfter options in your plugin descriptor.



--
Sérgio Michels

On Wed, Jan 14, 2015 at 7:07 AM, Elmar Kretzer <el...@symentis.com> wrote:
Hi there,

is there any best practice on how to provide groovy module extensions from a plugin?

Right now on grails 2.4.4 it seems like DefaultGrailsApplication.initialiseGroovyExtensionModules does not take care of extensions provided via plugin.
Is there any configuration necessary in order to provide this functionality?

Anyone knows of any plugin that provides extensions?

Thanks for any help.

Elmar

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages