Permalink
Browse files

initial commit of resources and plugin structure

  • Loading branch information...
1 parent 799235c commit 79ac018b0eb88d64eabc12b0ef34c31fea339c63 @zachlendon committed May 1, 2012
@@ -0,0 +1,25 @@
+class JqueryMobileMetroGrailsPlugin {
+ // the plugin version
+ def version = "0.1"
+ // the version or versions of Grails the plugin is designed for
+ def grailsVersion = "1.3.7 > *"
+ // the other plugins this plugin depends on
+ def dependsOn = ['resources':'1.0 > *', 'jquery':'1.6 > *']
+
+ // resources that are excluded from plugin packaging
+ def pluginExcludes = [
+ "grails-app/views/error.gsp"
+ ]
+
+ def author = "Zach Lendon"
+ def authorEmail = "zach.lendon@gmail.com"
+ def title = "Plugin jQuery mobile framework metro theme resource files"
+ def description = 'Plugin jQuery mobile framework metro theme resource files. To get started -- checkout http://jquerymobile.com/'
+
+ // URL to the plugin's documentation
+ def documentation = "https://github.com/zachlendon/jquery-mobile-metro-grails-plugin/blob/master/README.md"
+ def license = "APACHE"
+ def issueManagement = [ system: "github", url: "https://github.com/zachlendon/jquery-mobile-metro-grails-plugin/issues" ]
+ def scm = [ url: "https://github.com/zachlendon/jquery-mobile-metro-grails-plugin" ]
+
+}
View
@@ -0,0 +1,4 @@
+#Grails Metadata file
+#Mon Apr 30 23:23:00 CDT 2012
+app.grails.version=1.3.7
+app.name=jquery-mobile-metro-grails-plugin
View
@@ -0,0 +1,34 @@
+grails.project.class.dir = "target/classes"
+grails.project.test.class.dir = "target/test-classes"
+grails.project.test.reports.dir = "target/test-reports"
+//grails.project.war.file = "target/${appName}-${appVersion}.war"
+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 {
+ grailsPlugins()
+ grailsHome()
+ 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.13'
+ }
+ plugins {
+ build ":jquery-mobile:latest.integration"
+ }
+}
@@ -0,0 +1,8 @@
+modules = {
+
+ 'jquery-mobile-metro' {
+ dependsOn 'jquery-mobile'
+ resource url:[plugin: 'jquery-mobile', dir: 'css', file: 'jquery.mobile-1.1.0.css'], disposition: 'head'
+ resource url:[plugin: 'jquery-mobile', dir: 'js', file: 'jquery.mobile-1.1.0.js'], disposition: 'head'
+ }
+}
View
@@ -0,0 +1,10 @@
+//
+// This script is executed by Grails after plugin was installed to project.
+// This script is a Gant script so you can use all special variables provided
+// by Gant (such as 'baseDir' which points on project base dir). You can
+// use 'ant' to access a global instance of AntBuilder
+//
+// For example you can create directory under project tree:
+//
+// ant.mkdir(dir:"${basedir}/grails-app/jobs")
+//
@@ -0,0 +1,5 @@
+//
+// This script is executed by Grails when the plugin is uninstalled from project.
+// Use this script if you intend to do any additional clean-up on uninstall, but
+// beware of messing up SVN directories!
+//
View
@@ -0,0 +1,10 @@
+//
+// This script is executed by Grails during application upgrade ('grails upgrade'
+// command). This script is a Gant script so you can use all special variables
+// provided by Gant (such as 'baseDir' which points on project base dir). You can
+// use 'ant' to access a global instance of AntBuilder
+//
+// For example you can create directory under project tree:
+//
+// ant.mkdir(dir:"${basedir}/grails-app/jobs")
+//
Oops, something went wrong.

0 comments on commit 79ac018

Please sign in to comment.