-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from tbarker9/spud-core-cleanup
cleanup spud core
- Loading branch information
Showing
22 changed files
with
567 additions
and
275 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#IDE files | ||
.idea | ||
*.iml | ||
|
||
#plugin files | ||
*.zip | ||
plugin.xml | ||
|
||
#build / work directory | ||
target |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,36 @@ | ||
import org.springframework.beans.factory.support.* | ||
|
||
class SpudCoreGrailsPlugin { | ||
// the plugin version | ||
def groupId = "com.bertramlabs" | ||
def version = "0.1-SNAPSHOT" | ||
// the version or versions of Grails the plugin is designed for | ||
def grailsVersion = "2.3 > *" | ||
// resources that are excluded from plugin packaging | ||
def pluginExcludes = [ | ||
"grails-app/views/error.gsp" | ||
] | ||
|
||
// TODO Fill in these fields | ||
def title = "Spud Core Plugin" // Headline display name of the plugin | ||
def author = "David Estes" | ||
def authorEmail = "destes@bcap.com" | ||
def description = '''\ | ||
Brief summary/description of the plugin. | ||
def groupId = "com.bertramlabs" | ||
def version = "0.1-SNAPSHOT" | ||
def grailsVersion = "2.3 > *" | ||
def pluginExcludes = [ | ||
"grails-app/views/error.gsp" | ||
] | ||
|
||
def title = "Spud Core Plugin" // Headline display name of the plugin | ||
def author = "David Estes" | ||
def authorEmail = "destes@bcap.com" | ||
def description = '''\ | ||
Provides core functionality to spud modules | ||
''' | ||
|
||
// URL to the plugin's documentation | ||
def documentation = "http://grails.org/plugin/spud-core" | ||
|
||
// Extra (optional) plugin metadata | ||
|
||
// License: one of 'APACHE', 'GPL2', 'GPL3' | ||
// def license = "APACHE" | ||
|
||
// Details of company behind the plugin (if there is one) | ||
// def organization = [ name: "My Company", url: "http://www.my-company.com/" ] | ||
|
||
// Any additional developers beyond the author specified above. | ||
// def developers = [ [ name: "Joe Bloggs", email: "joe@bloggs.net" ]] | ||
|
||
// Location of the plugin's issue tracker. | ||
// def issueManagement = [ system: "JIRA", url: "http://jira.grails.org/browse/GPMYPLUGIN" ] | ||
|
||
// Online location of the plugin's browseable source code. | ||
// def scm = [ url: "http://svn.codehaus.org/grails-plugins/" ] | ||
|
||
def doWithWebDescriptor = { xml -> | ||
// TODO Implement additions to web.xml (optional), this event occurs before | ||
} | ||
|
||
def doWithSpring = { | ||
def beanName = application.config.spud.securityService ? application.config.spud.securityService : 'abstractSpudSecurityService' | ||
springConfig.addAlias "spudSecurity", beanName | ||
|
||
application.config.spud.renderers = application.config.spud.renderers ?: [:] | ||
application.config.spud.templateEngines = application.config.spud.templateEngines ?: [:] | ||
application.config.spud.renderers.gsp = 'defaultSpudRendererService' | ||
application.config.spud.templateEngines.system = 'defaultSpudTemplateService' | ||
} | ||
|
||
def doWithDynamicMethods = { ctx -> | ||
// TODO Implement registering dynamic methods to classes (optional) | ||
} | ||
|
||
def doWithApplicationContext = { ctx -> | ||
ctx.adminApplicationService.initialize() | ||
def documentation = "http://grails.org/plugin/spud-core" | ||
def license = "APACHE" | ||
def organization = [name: "Bertram Labs", url: "http://www.bertramlabs.com/"] | ||
def issueManagement = [system: "GITHUB", url: "https://github.com/bertramdev/spud-grails/issues"] | ||
def scm = [url: "https://github.com/bertramdev/spud-grails"] | ||
|
||
} | ||
def doWithSpring = { | ||
def beanName = application.config.spud.securityService ? application.config.spud.securityService : 'abstractSpudSecurityService' | ||
springConfig.addAlias "spudSecurity", beanName | ||
|
||
def onChange = { event -> | ||
// TODO Implement code that is executed when any artefact that this plugin is | ||
// watching is modified and reloaded. The event contains: event.source, | ||
// event.application, event.manager, event.ctx, and event.plugin. | ||
} | ||
application.config.spud.renderers = application.config.spud.renderers ?: [:] | ||
application.config.spud.templateEngines = application.config.spud.templateEngines ?: [:] | ||
application.config.spud.renderers.gsp = 'defaultSpudRendererService' | ||
application.config.spud.templateEngines.system = 'defaultSpudTemplateService' | ||
} | ||
|
||
def onConfigChange = { event -> | ||
// TODO Implement code that is executed when the project configuration changes. | ||
// The event is the same as for 'onChange'. | ||
} | ||
def doWithApplicationContext = { ctx -> | ||
ctx.adminApplicationService.initialize() | ||
|
||
def onShutdown = { event -> | ||
// TODO Implement code that is executed when the application shuts down (optional) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#Grails Metadata file | ||
#Sat Oct 05 13:02:23 EDT 2013 | ||
app.grails.version=2.3.0 | ||
app.grails.version=2.3.4 | ||
app.name=SpudCore |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.