gaelyk / gradle-gaelyk-plugin

Gradle plugin that provides tasks for managing Gaelyk projects
Apache License 2.0
25 stars 5 forks source link

Add common boilerplate #13

Closed erdi closed 12 years ago

erdi commented 12 years ago

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.

bmuschko commented 12 years ago

Sorry for the delay. The merge is going to happen tonight or tomorrow.

erdi commented 12 years ago

No worries, we're not in a rush! :)

On Fri, Jul 20, 2012 at 1:15 PM, Benjamin Muschko reply@reply.github.com wrote:

Sorry for the delay. The merge is going to happen tonight or tomorrow.


Reply to this email directly or view it on GitHub: https://github.com/bmuschko/gradle-gaelyk-plugin/pull/13#issuecomment-7128783