gaelyk / gradle-gaelyk-plugin

Gradle plugin that provides tasks for managing Gaelyk projects
Apache License 2.0
25 stars 5 forks source link
gaelyk gaelyk-plugin google-app-engine gradle-plugin groovy maintainer-wanted

Gradle Gaelyk plugin

Gaelyk Logo

The plugin provides tasks for managing Gaelyk projects in any given Gradle build. It applies Gradle App Engine plugin and Groovy plugin to the project. Finally it adds some Gaelyk specific tasks.

Gaelyk plugin applies GAE plugin to provide tasks for running the application, uploading it to App Engine etc. - see Gradle App Engine plugin's documentation for details. To run Gaelyk application just use appengineRun task as in any other App Engine website. The changes in source are synchronized autmoatically for the websites. The plugin does not support synchronization for EAR modules yet since the Gradle App Engine plugin doesn't handles these situations gracefully yet.

Release Notes

0.7.0

This version is the first officially compatible with Gradle 2.x branch and it's new plugin mechanisms.

Breaking Change: The name of generated GTPLs now escapes to _gtpl_ instead of $gtpl$. This change is reflected in Gaelyk 2.2.0 and later which has to be used to be able to find the precompiled templates.

Usage

Gradle 2.1 and Later

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

plugins {
  id "org.gaelyk" version "0.7.0"
}

Before Gradle 2.1

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

apply plugin: 'org.gaelyk'

The plugin JAR needs to be defined in the classpath of your build script. It is directly available on Maven Central. Alternatively, you can download it from GitHub and deploy it to your local repository. The following code snippet shows an example on how to retrieve it from Maven Central:

buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath 'org.gradle.api.plugins:gradle-gaelyk-plugin:0.7'
    }
}

Convention properties

The Gaelyk plugin defines the following convention properties in the gaelyk closure:

Integration with other Gradle plugins

Dependencies you need to specify

When applying gaelyk plugin to your project remember that you have to specify the folowing dependencies:

To be able to develop a Gaelyk application you also need to add a compile dependency on Gaelyk. The dependencies section of your build might look like this:

dependencies {
    compile 'org.codehaus.groovy:groovy-all:2.4.3'
    appengineSdk "com.google.appengine:appengine-java-sdk:1.9.20"
    compile 'org.gaelyk:gaelyk:2.1'
}

Tasks

Task Rules