From e6767779c535ccfddcff5a7708bed8e7f8f7411b Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Mon, 19 Dec 2016 22:36:47 +0100 Subject: only execute verify if download was executed --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index beb42c7..fed86ec 100644 --- a/build.gradle +++ b/build.gradle @@ -96,6 +96,10 @@ subprojects { verifyTask.src downloadTask.dest verifyTask.algorithm 'SHA-256' verifyTask.checksum params.sha256 + verifyTask.onlyIf { + // only verify if download was executed + !downloadTask.state.skipped + } downloadTask.finalizedBy(verifyTask) -- cgit v1.2.1