From 7df6235dcd31f0d37b0108a0914e429f0dc80e59 Mon Sep 17 00:00:00 2001 From: Nehon Date: Thu, 19 Jun 2014 07:59:51 +0200 Subject: [PATCH] The packaged zip now contains the sources --- build.gradle | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index f544ecde6..3c39f6dc8 100644 --- a/build.gradle +++ b/build.gradle @@ -57,10 +57,15 @@ task libDist(dependsOn: subprojects.build) << { } } -task createZipDistribution(type:Zip,dependsOn:"dist", description:"Package the nightly zip distribution"){ +task createZipDistribution(type:Zip,dependsOn:["dist","libDist"], description:"Package the nightly zip distribution"){ archiveName "jME"+jmeVersion+"_"+jmeVersionTag+"_"+new Date().format("yyyy-MM-dd")+".zip" - from {"./dist"} - into("/") + + into("/") { + from {"./dist"} + } + into("/sources") { + from {"$buildDir/libDist/sources"} + } println archiveName }