Repository: incubator-edgent Updated Branches: refs/heads/master 829f25265 -> 17998f482
EDGENT-253 add source tgz generation Project: http://git-wip-us.apache.org/repos/asf/incubator-edgent/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-edgent/commit/a4449361 Tree: http://git-wip-us.apache.org/repos/asf/incubator-edgent/tree/a4449361 Diff: http://git-wip-us.apache.org/repos/asf/incubator-edgent/diff/a4449361 Branch: refs/heads/master Commit: a444936100f37001ee922d9671d78b1cb78903c6 Parents: bf75b02 Author: Dale LaBossiere <[email protected]> Authored: Thu Oct 6 13:00:18 2016 -0400 Committer: Dale LaBossiere <[email protected]> Committed: Thu Oct 6 13:00:18 2016 -0400 ---------------------------------------------------------------------- build.gradle | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-edgent/blob/a4449361/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle index b56e0d5..14b67b6 100644 --- a/build.gradle +++ b/build.gradle @@ -724,6 +724,29 @@ task releaseTarGz(type: Tar) { } } +task srcReleaseTarGz(type: Tar) { + description = 'Create source tgz in target_dir' + archiveName = "${build_name}-source-v${build_version}-${DSTAMP}-${TSTAMP}.tgz" + compression = Compression.GZIP + destinationDir = new File("${target_dir}/../release-edgent") + duplicatesStrategy 'exclude' + into "${build_name}" + // make some things first in the tgz + from "LICENSE", "NOTICE", "KEYS" + from "DEVELOPMENT.md", "README.md" + from '.' + exclude '.git', '.gradle', '.settings' + exclude '**/build/' // gradle generated artifacts + exclude '**/externalJars/' // gradle generated artifacts for eclipse + exclude '**/bin/' // eclipse generated artifacts + exclude '**/classes/' // ant generated artifacts + doLast { + ant.checksum algorithm: 'md5', file: archivePath + ant.checksum algorithm: 'sha1', file: archivePath + println "created $destinationDir/$archiveName" + } +} + assemble { description = "Assemble distribution artifacts and populate the target_dir with jars, doc, etc. Like 'build' w/o 'test'" dependsOn filteredSubprojects.assemble, aggregateJavadoc, copyScripts @@ -743,7 +766,7 @@ task release { description = 'Assemble distribution artifacts, populate target_dir, and create a release tgz' dependsOn cleanAll, addMiscDistFiles, assemble, ':platform:java7:addJava7TargetDir', ':platform:android:addAndroidTargetDir', - releaseTarGz + srcReleaseTarGz, releaseTarGz addMiscDistFiles.mustRunAfter cleanAll assemble.mustRunAfter addMiscDistFiles releaseTarGz.mustRunAfter assemble,':platform:java7:addJava7TargetDir',':platform:android:addAndroidTargetDir'
