Permalink
Browse files

cleanup

  • Loading branch information...
1 parent bde6fdd commit c992a6f6b90355e5344c1081b319f7d1256bb4fc Burt Beckwith committed Oct 12, 2012
Showing with 22 additions and 118 deletions.
  1. +2 −6 .gitignore
  2. +2 −54 BackbonejsGrailsPlugin.groovy
  3. +0 −3 application.properties
  4. +14 −33 grails-app/conf/BuildConfig.groovy
  5. +4 −22 grails-app/conf/Config.groovy
View
@@ -1,10 +1,6 @@
*.iws
-*Db.properties
-*Db.script
.settings
eclipse
-stacktrace.log
+*.log
target
-/plugins
-/web-app/plugins
-/web-app/WEB-INF/classes
+/web-app/WEB-INF
@@ -1,65 +1,13 @@
class BackbonejsGrailsPlugin {
- // the plugin version
def version = "0.9.2"
- // the version or versions of Grails the plugin is designed for
def grailsVersion = "2.1 > *"
- // the other plugins this plugin depends on
- def dependsOn = [:]
- // resources that are excluded from plugin packaging
- def pluginExcludes = [
- "grails-app/views/error.gsp"
- ]
-
- // TODO Fill in these fields
- def title = "Grails Backbone.js Resources Plugin" // Headline display name of the plugin
+ def title = "Grails Backbone.js Resources Plugin"
def author = "Karol Balejko"
def authorEmail = "kb@groovydev.com"
- def description = '''\
-This plugin provides resources for Backbone.js http://backbonejs.org/
-'''
-
- // URL to the plugin's documentation
+ def description = 'Provides resources for Backbone.js http://backbonejs.org/'
def documentation = "http://grails.org/plugin/backbonejs"
- // Extra (optional) plugin metadata
-
- // License: one of 'APACHE', 'GPL2', 'GPL3'
def license = "APACHE"
-
- def developers = [ [ name: "Karol Balejko", email: "kb@groovydev.com" ]]
def organization = [ name: "GroovyDev", url: "http://groovydev.com/" ]
-
- // Online location of the plugin's browseable source code.
def scm = [ url: "https://github.com/groovydev/backbonejs-grails-plugin" ]
-
- def doWithWebDescriptor = { xml ->
- // TODO Implement additions to web.xml (optional), this event occurs before
- }
-
- def doWithSpring = {
- // TODO Implement runtime spring config (optional)
- }
-
- def doWithDynamicMethods = { ctx ->
- // TODO Implement registering dynamic methods to classes (optional)
- }
-
- def doWithApplicationContext = { applicationContext ->
- // TODO Implement post initialization spring config (optional)
- }
-
- 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.
- }
-
- def onConfigChange = { event ->
- // TODO Implement code that is executed when the project configuration changes.
- // The event is the same as for 'onChange'.
- }
-
- def onShutdown = { event ->
- // TODO Implement code that is executed when the application shuts down (optional)
- }
}
View
@@ -1,4 +1 @@
-#Grails Metadata file
-#Fri Oct 12 20:21:29 CEST 2012
app.grails.version=2.1.0
-app.name=backbonejs
@@ -1,39 +1,20 @@
-grails.project.class.dir = "target/classes"
-grails.project.test.class.dir = "target/test-classes"
-grails.project.test.reports.dir = "target/test-reports"
+grails.project.work.dir = 'target'
grails.project.dependency.resolution = {
- // inherit Grails' default dependencies
- inherits("global") {
- // uncomment to disable ehcache
- // excludes 'ehcache'
- }
- log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
- repositories {
- grailsCentral()
- // uncomment the below to enable remote dependency resolution
- // from public Maven repositories
- //mavenLocal()
- //mavenCentral()
- //mavenRepo "http://snapshots.repository.codehaus.org"
- //mavenRepo "http://repository.codehaus.org"
- //mavenRepo "http://download.java.net/maven/2/"
- //mavenRepo "http://repository.jboss.com/maven2/"
- }
- dependencies {
- // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
- // runtime 'mysql:mysql-connector-java:5.1.18'
- }
+ inherits 'global'
+ log 'warn'
- plugins {
- build(":tomcat:$grailsVersion",
- ":release:2.0.3",
- ":rest-client-builder:1.0.2") {
- export = false
- }
+ repositories {
+ grailsCentral()
+ }
- runtime ":resources:1.2-RC1"
- compile ":underscore:1.4.0"
- }
+ plugins {
+ build(':release:2.0.4', ':rest-client-builder:1.0.2') {
+ export = false
+ }
+
+ runtime ':resources:1.2-RC1'
+ compile ':underscore:1.4.0'
+ }
}
@@ -1,24 +1,6 @@
-// configuration for plugin testing - will not be included in the plugin zip
-
log4j = {
- // Example of changing the log pattern for the default console
- // appender:
- //
- //appenders {
- // console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
- //}
-
- error 'org.codehaus.groovy.grails.web.servlet', // controllers
- 'org.codehaus.groovy.grails.web.pages', // GSP
- 'org.codehaus.groovy.grails.web.sitemesh', // layouts
- 'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
- 'org.codehaus.groovy.grails.web.mapping', // URL mapping
- 'org.codehaus.groovy.grails.commons', // core / classloading
- 'org.codehaus.groovy.grails.plugins', // plugins
- 'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
- 'org.springframework',
- 'org.hibernate',
- 'net.sf.ehcache.hibernate'
-
- warn 'org.mortbay.log'
+ error 'org.codehaus.groovy.grails',
+ 'org.springframework',
+ 'org.hibernate',
+ 'net.sf.ehcache.hibernate'
}

0 comments on commit c992a6f

Please sign in to comment.