Multi-project distribution archive

on Tuesday, 28 January 2014
This snippet will produce a zip archive that includes the artifacts of the 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/**'
}
}
}
view raw distZip.gradle hosted with ❤ by GitHub

0 comments:

Post a Comment