This is an automated email from the ASF dual-hosted git repository.

elukey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git


The following commit(s) were added to refs/heads/master by this push:
     new 136f7cc   BIGTOP-3644: Improve Gradle download resiliency (#865)
136f7cc is described below

commit 136f7cc48b4d65b3a7c8c49e9353b4ac6f5fd5ef
Author: Luca Toscano <[email protected]>
AuthorDate: Sun Feb 20 12:08:31 2022 +0100

     BIGTOP-3644: Improve Gradle download resiliency (#865)
    
    This change bumps up the version of the de.undercouch.download
    Gradle download plugin to add the `retries` parameter to the
    download function used to retrieve upstream artifacts.
    
    The bump from 3.x to 4.x should be supported, afaics, from our
    current setup:
    
https://github.com/michel-kraemer/gradle-download-task#migrating-from-version-3x-to-4x
---
 build.gradle    | 2 +-
 packages.gradle | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/build.gradle b/build.gradle
index 25dea93..c8d918b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -23,7 +23,7 @@ buildscript {
 }
 
 plugins {
-  id "de.undercouch.download" version "3.2.0"
+  id "de.undercouch.download" version "4.1.2"
   id "org.nosphere.apache.rat" version "0.2.0"
 }
 
diff --git a/packages.gradle b/packages.gradle
index 0a36c8c..9bc74f5 100644
--- a/packages.gradle
+++ b/packages.gradle
@@ -256,6 +256,7 @@ def genTasks = { target ->
       download {
         src DOWNLOAD_URL
         dest DOWNLOAD_DST
+        retries 3
       }
     }
     touchTargetFile(config.bigtop.components[target].targetdl)

Reply via email to