/gradle-gaelyk-plugin

Gradle plugin that provides tasks for managing Gaelyk projects

Primary LanguageGroovyApache License 2.0Apache-2.0

Gradle Gaelyk plugin

The plugin provides tasks for managing Gaelyk projects in any given Gradle build. It extends the War plugin.

Usage

To use the Gaelyk plugin, apply the plugin to your build script:

apply plugin: 'gaelyk'

The plugin JAR and the App Engine tools SDK library need to be defined in the classpath of your build script. You can either get the plugin from the GitHub download section or upload it to your local repository. You'll also have to assign the base directory of your web application (war by default). The following code snippet shows an example:

buildscript {
    repositories {
	    add(new org.apache.ivy.plugins.resolver.URLResolver()) {
		    name = "GitHub"
		    addArtifactPattern 'http://cloud.github.com/downloads/bmuschko/gradle-gaelyk-plugin/[module]-[revision].[ext]'
	    }
        mavenCentral()
    }

    dependencies {
        classpath ':gradle-gaelyk-plugin:0.1'
    }
}

webAppDirName = new File("war")

Tasks

Task Rules

  • gaelykCreateController<ControllerName>: Creates a Gaelyk controller (Groovlet). Optionally, you can define the directory to put the file in using the command line property dir. Example: gradle gaelykCreateControllerUser creates the file user.groovy in the directory war/WEB-INF/groovy.
  • gaelykCreateView<ViewName>: Creates a Gaelyk view (Groovy template). Optionally, you can define the directory to put the file in using the command line property dir. Example: gaelykCreateViewAddress -Pdir=address creates the file address.gtpl in the directory war/address.