The plugin provides tasks for managing Gaelyk projects in any given Gradle build. It extends the War plugin.
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")
gaelykCreateController<ControllerName>
: Creates a Gaelyk controller (Groovlet). Optionally, you can define the directory to put the file in using the command line propertydir
. Example:gradle gaelykCreateControllerUser
creates the fileuser.groovy
in the directorywar/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 propertydir
. Example:gaelykCreateViewAddress -Pdir=address
creates the fileaddress.gtpl
in the directorywar/address
.