Skip to content

Commit

Permalink
Setup gradle wrapper in advance to avoid having the "downloading" log…
Browse files Browse the repository at this point in the history
… printed inside the output of the dependency task
  • Loading branch information
jreij committed Feb 20, 2025
1 parent 4f9dd25 commit 40e1778
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/check_dependency_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 40e1778

Please sign in to comment.