Skip to content

Instantly share code, notes, and snippets.

@jbouse
Last active July 10, 2019 15:52
#!/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