mirror of
https://github.com/rfrancis/asdf-gradle.git
synced 2024-10-05 13:12:08 +08:00
initial testing
This commit is contained in:
commit
fd58a48a15
12
bin/install
Executable file
12
bin/install
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
# instructions taken straight from https://gradle.org/install/#manually
|
||||
if [ "$ASDF_INSTALL_TYPE" = "ref" ]
|
||||
then
|
||||
git clone "$ASDF_INSTALL_VERSION" "$ASDF_INSTALL_PATH"
|
||||
else
|
||||
mkdir -p "$ASDF_INSTALL_PATH"
|
||||
cd "$ASDF_INSTALL_PATH" || exit 1
|
||||
curl -O https://services.gradle.org/distributions/gradle-${ASDF_INSTALL_VERSION}-bin.zip
|
||||
unzip gradle-${ASDF_INSTALL_VERSION}-bin.zip
|
||||
rm gradle-${ASDF_INSTALL_VERSION}-bin.zip
|
||||
fi
|
2
bin/list-all
Executable file
2
bin/list-all
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
curl -s https://services.gradle.org/distributions/ | grep -e "distributions.*-bin.zip\"" | sed -e "s#^.*distributions/gradle-##" -e "s#-bin.zip.*##" | sort -t. -n | paste -s -d" " -
|
Loading…
Reference in New Issue
Block a user