Skip to content

Commit

Permalink
Merge pull request #1 from tbarker9/spud-core-cleanup
Browse files Browse the repository at this point in the history
cleanup spud core
  • Loading branch information
davydotcom committed Jan 8, 2014
2 parents 46c1e1c + 9e4c52a commit cffd5ad
Show file tree
Hide file tree
Showing 22 changed files with 567 additions and 275 deletions.
19 changes: 0 additions & 19 deletions SpudCore/.classpath

This file was deleted.

10 changes: 10 additions & 0 deletions SpudCore/.gitignore
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
19 changes: 0 additions & 19 deletions SpudCore/.project

This file was deleted.

99 changes: 28 additions & 71 deletions SpudCore/SpudCoreGrailsPlugin.groovy
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)
}
}
}
2 changes: 1 addition & 1 deletion SpudCore/application.properties
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 removed SpudCore/grails-spud-core-0.1-SNAPSHOT.zip
Binary file not shown.
Binary file removed SpudCore/grails-spud-core-0.1.zip
Binary file not shown.
Loading

0 comments on commit cffd5ad

Please sign in to comment.