diff options
author | Christian Maierhofer <cmaierhofer@iaik.tugraz.at> | 2016-06-23 09:39:11 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2016-08-17 16:50:28 +0200 |
commit | 12bb28729d05ce72c6b8691365df2ce33f09a6eb (patch) | |
tree | 73f42068922695dd7a17bc8fe36223c2129a71f1 | |
parent | 3f82e0c70d25096bbedd73581741afdb6fa4bc23 (diff) | |
download | pdf-as-4-12bb28729d05ce72c6b8691365df2ce33f09a6eb.tar.gz pdf-as-4-12bb28729d05ce72c6b8691365df2ce33f09a6eb.tar.bz2 pdf-as-4-12bb28729d05ce72c6b8691365df2ce33f09a6eb.zip |
added license copy task for release task
-rw-r--r-- | build.gradle | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 05db6dfb..47ef7658 100644 --- a/build.gradle +++ b/build.gradle @@ -140,13 +140,29 @@ subprojects { } //doFullRelease jar war distZip distTar releases sourcesJar uploadArchives + } task(doFullRelease) << { println "done building all distribution stuff for " + project.version } +task copyLicenses<<{ + mkdir("releases/"+ version +"/licenses"); + def target = project.projectDir.toString() + "/releases/" + version + "/licenses" + subprojects{ + def src=project.projectDir.toString() + "/licenses" + copy{ + from src + into target + } + } + + +} + task releases(type: Copy) { + dependsOn copyLicenses from ('doc') { include '*.pdf' } @@ -154,6 +170,7 @@ task releases(type: Copy) { into "releases/" + version + "/docs" } + def getCheckedOutGitCommitHash() { def gitFolder = "$projectDir/.git/" def takeFromHash = 40 |