Skip to content

Instantly share code, notes, and snippets.

@willis7
Created January 28, 2014 17:18
Show Gist options
  • Save willis7/8671988 to your computer and use it in GitHub Desktop.
Save willis7/8671988 to your computer and use it in GitHub Desktop.
This gist will produce a zip archive including the release artifacts of any subprojects
task distributionZip(type: Zip) {
archiveName = "${project.name}.zip"
subprojects.each { subproject ->
inputs.dir subproject.buildDir
into(subproject.name) {
from subproject.buildDir
include 'docs/**'
include 'libs/**'
include 'reports/**'
include 'test-results/**'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment