Skip to content

Instantly share code, notes, and snippets.

@robfletcher
Created June 23, 2009 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robfletcher/134689 to your computer and use it in GitHub Desktop.
Save robfletcher/134689 to your computer and use it in GitHub Desktop.
includeTargets << grailsScript("_GrailsInit")
includeTargets << grailsScript("_PluginDependencies")
target('default': "Prepares development environment") {
depends(installPlugins, installDependencies)
event("StatusFinal", ["Done"])
}
target(installPlugins: "Installs all plugins") {
depends(resolveDependencies)
}
target(installDependencies: "Installs library dependencies via Ivy") {
if (metadata['plugins.ivy']) {
includeTargets << new File ("${ivyPluginDir}/scripts/GetDependencies.groovy")
depends(dependencies)
} else {
event("StatusFinal", ["The Ivy plugin is not installed"])
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment