Skip to content

Instantly share code, notes, and snippets.

@ldaley
Created May 11, 2013 13:09
Show Gist options
  • Save ldaley/5559921 to your computer and use it in GitHub Desktop.
Save ldaley/5559921 to your computer and use it in GitHub Desktop.
New capability in Gradle 1.6. Run all verifications (e.g. checkstyle, tests) on all projects (if they are to be executed in this build) before uploading anything. e.g. ./gradlew clean build uploadArchives Will only upload after all projects have been built and tested.
allprojects {
tasks.withType(Upload) {
allprojects {
mustRunAfter tasks.matching { it instanceof VerificationTask }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment