{"action":"created","issue":{"url":"https://api.github.com/repos/grails/grails-core/issues/9403","labels_url":"https://api.github.com/repos/grails/grails-core/issues/9403/labels{/name}","comments_url":"https://api.github.com/repos/grails/grails-core/issues/9403/comments","events_url":"https://api.github.com/repos/grails/grails-core/issues/9403/events","html_url":"https://github.com/grails/grails-core/issues/9403","id":115425611,"number":9403,"title":"Plugins should be able to use plugin.groovy along with plugin.yml","user":{"login":"longwa","id":361184,"avatar_url":"https://avatars.githubusercontent.com/u/361184?v=3","gravatar_id":"","url":"https://api.github.com/users/longwa","html_url":"https://github.com/longwa","followers_url":"https://api.github.com/users/longwa/followers","following_url":"https://api.github.com/users/longwa/following{/other_user}","gists_url":"https://api.github.com/users/longwa/gists{/gist_id}","starred_url":"https://api.github.com/users/longwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longwa/subscriptions","organizations_url":"https://api.github.com/users/longwa/orgs","repos_url":"https://api.github.com/users/longwa/repos","events_url":"https://api.github.com/users/longwa/events{/privacy}","received_events_url":"https://api.github.com/users/longwa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/grails/grails-core/labels/Improvement","name":"Improvement","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/grails/grails-core/milestones/146","html_url":"https://github.com/grails/grails-core/milestones/grails-3.1-M3","labels_url":"https://api.github.com/repos/grails/grails-core/milestones/146/labels","id":1355233,"number":146,"title":"grails-3.1-M3","description":"","creator":{"login":"graemerocher","id":66626,"avatar_url":"https://avatars.githubusercontent.com/u/66626?v=3","gravatar_id":"","url":"https://api.github.com/users/graemerocher","html_url":"https://github.com/graemerocher","followers_url":"https://api.github.com/users/graemerocher/followers","following_url":"https://api.github.com/users/graemerocher/following{/other_user}","gists_url":"https://api.github.com/users/graemerocher/gists{/gist_id}","starred_url":"https://api.github.com/users/graemerocher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemerocher/subscriptions","organizations_url":"https://api.github.com/users/graemerocher/orgs","repos_url":"https://api.github.com/users/graemerocher/repos","events_url":"https://api.github.com/users/graemerocher/events{/privacy}","received_events_url":"https://api.github.com/users/graemerocher/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":1,"state":"open","created_at":"2015-10-14T12:10:57Z","updated_at":"2015-11-06T07:48:10Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-11-06T03:11:53Z","updated_at":"2015-11-06T17:28:39Z","closed_at":null,"body":"We have an inline plugin with configuration that is shared with several application modules. In Grails 2, much of this configuration is in a PluginNameConfig.groovy file which is automatically included in the application.\r\n\r\nHowever, in Grails 3, the only built-in way to get plugin configuration into the application seems to be with the plugin.yml file.\r\n\r\nThe plugin.yml is ok for some things, but we have several cases where we need to use .groovy configuration (for example, some spring security config params take a Closure).\r\n\r\nIt would be nice and consistent if plugin.groovy was also an option in the same way that application.groovy is an option for the application.\r\n\r\nI was able to hack together something in the plugin itself that loads a Config.groovy via ConfigSlurper and merge(), but that doesn't fix the springsecurity example, for instance, b/c that plugin has to load before our plugin loads (we override some of the beans)."},"comment":{"url":"https://api.github.com/repos/grails/grails-core/issues/comments/154479202","html_url":"https://github.com/grails/grails-core/issues/9403#issuecomment-154479202","issue_url":"https://api.github.com/repos/grails/grails-core/issues/9403","id":154479202,"user":{"login":"graemerocher","id":66626,"avatar_url":"https://avatars.githubusercontent.com/u/66626?v=3","gravatar_id":"","url":"https://api.github.com/users/graemerocher","html_url":"https://github.com/graemerocher","followers_url":"https://api.github.com/users/graemerocher/followers","following_url":"https://api.github.com/users/graemerocher/following{/other_user}","gists_url":"https://api.github.com/users/graemerocher/gists{/gist_id}","starred_url":"https://api.github.com/users/graemerocher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemerocher/subscriptions","organizations_url":"https://api.github.com/users/graemerocher/orgs","repos_url":"https://api.github.com/users/graemerocher/repos","events_url":"https://api.github.com/users/graemerocher/events{/privacy}","received_events_url":"https://api.github.com/users/graemerocher/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T17:28:39Z","updated_at":"2015-11-06T17:28:39Z","body":"You would have to override `GrailsApplicationPostProcessor.loadApplicationConfig()`"}}