Permalink
Browse files

Select the all distro

  • Loading branch information...
1 parent 161de46 commit 4831a4d2b28b06bccd21c1d6354c8c92440ac10c @bamboo bamboo committed Jul 20, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 update-wrapper.sh
View
@@ -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

Please sign in to comment.