|
|
@@ -2,9 +2,10 @@ |
|
|
|
|
|
repo='dist-snapshots'
|
|
|
|
|
|
+# .children[-2] selects the one before the last which is the all distro
|
|
|
latestSnapshotPath=`
|
|
|
http get https://repo.gradle.org/gradle/api/storage/$repo/ \
|
|
|
- | jq -r '(.children|last).uri'`
|
|
|
+ | jq -r '(.children[-2]).uri'`
|
|
|
|
|
|
find . -name gradle-wrapper.properties \
|
|
|
| xargs perl -p -i -e "s|^(distributionUrl=.*$repo).*|\$1$latestSnapshotPath|"
|
|
|
|
0 comments on commit
4831a4d