Skip to content

Instantly share code, notes, and snippets.

@jbouse
Last active July 10, 2019 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbouse/8c78cf0881eb57a6c7942712717c248e to your computer and use it in GitHub Desktop.
Save jbouse/8c78cf0881eb57a6c7942712717c248e to your computer and use it in GitHub Desktop.
#!/bin/bash
GRADLE_VERSION=$(curl -fsSL https://services.gradle.org/versions/current |jq --raw-output '.version') \
&& wget https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip \
&& unzip -d /usr/local gradle-${GRADLE_VERSION}-bin.zip \
&& ln -sf /usr/local/gradle-${GRADLE_VERSION} /usr/local/gradle \
&& rm -f gradle-${GRADLE_VERSION}-bin.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment