Skip to content

Instantly share code, notes, and snippets.

@robfletcher
Created January 17, 2010 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save robfletcher/279554 to your computer and use it in GitHub Desktop.
Save robfletcher/279554 to your computer and use it in GitHub Desktop.
Example of using a Gradle multi-project build to test a Grails plugin and all its test-apps
allprojects {
task clean << { task ->
ant.exec(executable: "grails", dir: "$task.project.projectDir", failonerror: true) {
arg line: "clean"
}
}
}
task test << {
ant.exec(executable: "grails", dir: "$projectDir", failonerror: true) {
arg line: "test-app unit:"
}
}
include "springcache-test", "alt-cache-impl"
project(":springcache-test").projectDir = new File(settingsDir, "test/projects/springcache-test")
project(":alt-cache-impl").projectDir = new File(settingsDir, "test/projects/alt-cache-impl")
task test << {
ant.exec(executable: "grails", dir: "$projectDir", failonerror: true) {
arg line: "test-app integration:"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment