aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorChristian Maierhofer <cmaierhofer@iaik.tugraz.at>2016-06-23 09:39:11 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-08-17 16:50:28 +0200
commit12bb28729d05ce72c6b8691365df2ce33f09a6eb (patch)
tree73f42068922695dd7a17bc8fe36223c2129a71f1 /build.gradle
parent3f82e0c70d25096bbedd73581741afdb6fa4bc23 (diff)
downloadpdf-as-4-12bb28729d05ce72c6b8691365df2ce33f09a6eb.tar.gz
pdf-as-4-12bb28729d05ce72c6b8691365df2ce33f09a6eb.tar.bz2
pdf-as-4-12bb28729d05ce72c6b8691365df2ce33f09a6eb.zip
added license copy task for release task
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle17
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