Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8785059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:15:23+00:00 2026-06-13T21:15:23+00:00

I am trying to write a plugin which I can reuse in several grails

  • 0

I am trying to write a plugin which I can reuse in several grails applications.
The plugin should basically be a wrapper for the spring security core and the ldap plugin.

Which means it should contain:

  • The domain classes for the user/roles
  • The configuration for spring security (the mapping to these domain classes, some default URL access role configuration)

My problem is that i can’t get the configuration inside my plugin working. I am confused by the examples I found so far: sometimes I read that the configuration should simply go to “Config.groovy” however grails docs state that this file isn’t part of a plugin in the end. In some examples it says that you have to put the configuration in any other .groovy file and wrap it with some identifier like so:

myConfigName {
    // normal config here
}

and then load it in the doWithSpring closure in the MyWrapperPlugin.groovy class via some slurper. However if i understand this correctly, this will only put the configuration in a grails.plugin.mywrapper namespace.

I could not find any example which tries to achieve the same thing (setting the configuraiton of a plugin inside another plugin) up to now.

Any examples/hints are appreciated, thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:15:25+00:00Added an answer on June 13, 2026 at 9:15 pm

    You can use the Grails Platform Core that

    provides functionality for plugins to use to achieve greater integration with each other and with applications

    The Configuration API it’s what you are looking for. Just add the doWithConfig in your plugin descriptor file (*GrailsPlugin.groovy):

    def doWithConfig = { config ->
      application {
        grails.plugins.springsecurity.ldap.active=true
        ...
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have integrated spring security plugin with my grails application, which has hibernate as
I'm trying to write a Jekyll plugin which generates an array of pages in
I am trying to write a simple Wordpress plugin, which updates a custom field
As I am trying to write a Grails Plugin, I stumbled upon two problems:
I am trying to write a plugin which will update a user field. I
I am trying to write a jQuery plugin, that can be applied to a
I am still trying to understand plugin procedure so I can write my own
I have been trying to write a Controller Plugin which I will be using
I'm trying to use this plugin Galleria in its responsive mode, which basically means
What I'm trying to do is to write some Maven plugin which scans application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.