[go: nahoru, domu]

[GH] Update gradle to 7.5-rc2, add transform workaround

This PR updates playground gradle to 7.5-rc2 (aosp is happening in parallel).
` ./gradlew wrapper --gradle-version=7.5-rc-2`

It also applies the workaround provided by the gradle team until we can update to 7.5.1 (or 7.6)

Bug: https://github.com/gradle/gradle/issues/20778
Test: CI

This is an imported pull request from https://github.com/androidx/androidx/pull/413.

Resolves #413
Github-Pr-Head-Sha: de11c88802c664c9a3d02ee8c82ef4e6e4297218
GitOrigin-RevId: acc6527bac663d451065f918a3603ee246fa097f
Change-Id: Id7f1dbbe6ee4d92388ce8eb3c43a678bd25065aa
diff --git a/playground-common/gradlew b/playground-common/gradlew
index 1b6c787..a69d9cb 100755
--- a/playground-common/gradlew
+++ b/playground-common/gradlew
@@ -205,6 +205,12 @@
         org.gradle.wrapper.GradleWrapperMain \
         "$@"
 
+# Stop when "xargs" is not available.
+if ! command -v xargs >/dev/null 2>&1
+then
+    die "xargs is not available"
+fi
+
 # Use "xargs" to parse quoted args.
 #
 # With -n1 it outputs one arg per line, with the quotes and backslashes removed.