From 40e1778befa785239b43ba508ea8ac162165c550 Mon Sep 17 00:00:00 2001 From: josephj Date: Thu, 20 Feb 2025 17:45:34 +0100 Subject: [PATCH] Setup gradle wrapper in advance to avoid having the "downloading" log printed inside the output of the dependency task --- scripts/check_dependency_changes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/check_dependency_changes.py b/scripts/check_dependency_changes.py index 124d8f6966..7508000320 100755 --- a/scripts/check_dependency_changes.py +++ b/scripts/check_dependency_changes.py @@ -21,6 +21,8 @@ def compare_dependency_list(base_ref: str, head_ref: str): def get_dependency_list(git_ref: str) -> str: subprocess.Popen(["git", "checkout", "-f", git_ref]) + # This is needed to avoid having the "downloading" wrapper progress text printed inside the output of the task + subprocess.Popen(["./gradlew", "wrapper", "-q"]) return subprocess.check_output(["./gradlew", "dependencyList", "-q", "--no-configuration-cache"] ).decode(sys.stdout.encoding ).strip()