bmuschko/gradle-gaelyk-plugin — pull request #13 by erdi (2012-07-05 18:28:14+00:00)
Title: Add common boilerplate

This pull request contains changes that will allow to remove the following lines from gaelyk template project's build file:

gae {
downloadSdk = true
optimizeWar = true
warDir = file('src/main/webapp/')

}

gaeExplodeWar.dependsOn gaelykPrecompileGroovlet
gaeExplodeWar.dependsOn gaelykPrecompileTemplate

sourceSets.main.output.classesDir = 'src/main/webapp/WEB-INF/classes'

clean {
delete sourceSets*.output.classesDir
}

task copyRuntimeLibraries(type: Sync) {
def webAppLibDirName = 'src/main/webapp/WEB-INF/lib'
description = "Copies runtime libraries to $webAppLibDirName."
from configurations.runtime
into webAppLibDirName
}

gaeRun.dependsOn copyRuntimeLibraries

I've added some integration like tests for the changes proposed. Please note that some of them are pretty slow as they require the build to execute up to gaeRun task. Hope that this is not a problem.