aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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