Issues with plugins in 3.0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Issues with plugins in 3.0

Claude Daoust
Hoping someone could help me out a little here.  Having a few issues with plugins in 3.0.  I'm using latest 3.1.10 and when all is inline (Gradle multi project) things work fairly well except for exception of DoWithSpring closure - didn't work when in plugin - had to put bean config in spring->Resources.groovy in main app.

Now when packaging plugins things got a little worse.  None of the plugin's dependencies were resolved - had to add them to main app. For example I have a plugin that uses rest client and another that uses spring security core and cas plugins. I had to ad all of these to the build.gradle deps of the main app.   Also, referencing  a service as a class (have some static methods) didn't work but not a big deal.   

So as example:

when inline I had the following gradle setup:
  build.gradle 
  dependencies {
    compile project(":security")

  settings.gradle 
    include 'security'
project(':security').projectDir = new File('../security')

When packaged: 
  build.gradle (in dependencies block)
  dependencies {
    compile 'ats.harvard.edu:security:3.0.0'

Perhaps there is a gradle setting for allowing the export of plugin deps?  


Also, my DoWithSpring closure still didn't work with the packaged plugin. This was setting up
 the custom user details bean for the spring security service.

It looks like this:
userDetailsService(SisUserDetailsService) {
realmId = application.config.app.realm
authClientService = ref('authClientService')
sisClientService = ref('sisClientService')
authenticateRoles = application.config.student.authenticate.roles
} 

Any help appreciated.
thanks, Claude

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/91c4c2ae-a781-4dca-bf5d-d6aa2d899d4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Issues with plugins in 3.0

Jeff Brown
On August 25, 2016 at 9:27:11 AM, Claude Daoust ([hidden email]) wrote:
> Hoping someone could help me out a little here. Having a few issues with
> plugins in 3.0. I'm using latest 3.1.10 and when all is inline (Gradle
> multi project) things work fairly well except for exception of DoWithSpring
> closure - didn't work when in plugin - had to put bean config in
> spring->Resources.groovy in main app.
>

Please file an issue at https://github.com/grails/grails-core/issues
and link to a sample application which demonstrates the problematic
behavior.

Thanks for the feedback.



JSB

--
Jeff Scott Brown
OCI Grails Practice Lead
Principal Software Engineer

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/CAEfmkrg5JPVYbV4cbFheD9yvDvVOfJ7y%2Brf6bT%3DcEZj-WyXD1A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Issues with plugins in 3.0

Jeff Brown
In reply to this post by Claude Daoust
On August 25, 2016 at 9:27:11 AM, Claude Daoust ([hidden email]) wrote:
> Hoping someone could help me out a little here. Having a few issues with
> plugins in 3.0. I'm using latest 3.1.10 and when all is inline (Gradle
> multi project) things work fairly well except for exception of DoWithSpring
> closure - didn't work when in plugin - had to put bean config in
> spring->Resources.groovy in main app.
>

I assume that is a typo and you meant doWithSpring, not DoWithSpring.
If you named it DoWithSpring, that would explain the problem.  In your
plugin descriptor you should have something like this:

    Closure doWithSpring() { {->
            // Implement runtime spring config here...
        }
    }


JSB

--
Jeff Scott Brown
OCI Grails Practice Lead
Principal Software Engineer

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/CAEfmkriu_quipJP5d3gzGr_d-osUWucD1vCerCb11DT11tggHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Issues with plugins in 3.0

Claude Daoust
In reply to this post by Jeff Brown
OK will do (when I have time to package up the sample)  - and yes that was just a typo - I placed the bean config within the already existing doWithSpring closure block.

thanks  

On Thursday, August 25, 2016 at 12:58:52 PM UTC-4, Jeff Scott Brown wrote:
On August 25, 2016 at 9:27:11 AM, Claude Daoust (<a href="javascript:" target="_blank" gdf-obfuscated-mailto="RnzjaEScCwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dao...@...) wrote:
> Hoping someone could help me out a little here. Having a few issues with
> plugins in 3.0. I'm using latest 3.1.10 and when all is inline (Gradle
> multi project) things work fairly well except for exception of DoWithSpring
> closure - didn't work when in plugin - had to put bean config in
> spring->Resources.groovy in main app.
>

Please file an issue at <a href="https://github.com/grails/grails-core/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fgrails%2Fgrails-core%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFSIwCzAO3hzS3u3blhlGt51k-lw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fgrails%2Fgrails-core%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFSIwCzAO3hzS3u3blhlGt51k-lw&#39;;return true;">https://github.com/grails/grails-core/issues
and link to a sample application which demonstrates the problematic
behavior.

Thanks for the feedback.



JSB

--
Jeff Scott Brown
OCI Grails Practice Lead
Principal Software Engineer

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;">http://www.autismspeaks.org/

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/40f24836-447a-4bb3-812a-3df904c6960e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.