mirror of
https://github.com/rfrancis/asdf-gradle.git
synced 2024-10-06 05:32:06 +08:00
11 lines
284 B
Bash
Executable File
11 lines
284 B
Bash
Executable File
#!/bin/sh
|
|
|
|
export LC_ALL=C
|
|
export GRADLE_DISTRIBUTION_URL=${GRADLE_DISTRIBUTION_URL:=https://services.gradle.org/distributions}
|
|
|
|
curl -s ${GRADLE_DISTRIBUTION_URL}/ |
|
|
grep -e "gradle.*-bin.zip\"" |
|
|
sed -e "s#^.*gradle-##" -e "s#-bin.zip.*##" |
|
|
sort -t. -n |
|
|
paste -s -d" " -
|