From 64394a46f4ef3589d8fb312e1a6891a30232a2cd Mon Sep 17 00:00:00 2001 From: ghidravore Date: Mon, 10 Jan 2022 16:47:27 -0500 Subject: [PATCH] GP-1648 fixed alternating bad builds after runing "buildGhidra" gradle command --- gradle/root/distribution.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gradle/root/distribution.gradle b/gradle/root/distribution.gradle index e9157c5956..32ea4baf0f 100644 --- a/gradle/root/distribution.gradle +++ b/gradle/root/distribution.gradle @@ -235,6 +235,10 @@ task zipJavadocs(type: Zip) { * **********************************************************************************************/ task assembleDistribution (type: Copy) { + // force this task to always be "out of date" + // Not sure why this is necessary, but without it, gradle thinks this task is "up to date" + // every other time it is run even though in both cases the output directory has been removed + outputs.upToDateWhen {false} group 'private' description "Copies core files/folders to the distribution location." @@ -369,6 +373,11 @@ task assembleDistribution (type: Copy) { *********************************************************************************/ project.PLATFORMS.each { platform -> task ("assembleDistribution_${platform.name}", type: Copy ) { + // force this task to always be "out of date" + // Not sure why this is necessary, but without it, gradle thinks this task is "up to date" + // every other time it is run even though in both cases the output directory has been removed + outputs.upToDateWhen {false} + // delete the gradle ziptree temp directory because of gradle bug not cleaning up its temp files. delete rootProject.file("build/tmp/expandedArchives")