Created
January 17, 2010 20:05
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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