Skip to content

Instantly share code, notes, and snippets.

@vigneshncc
Forked from hellonico/install-dropbox.sh
Created May 30, 2014 19:26
Show Gist options
  • Save vigneshncc/94b9acf806704f5643b4 to your computer and use it in GitHub Desktop.
Save vigneshncc/94b9acf806704f5643b4 to your computer and use it in GitHub Desktop.
export version=1.5.3
if [ "$#" -gt 0 ] ; then
export version="$1"
fi
echo "Installing Dropbox SDK version $version"
wget https://www.dropbox.com/static/developers/dropbox-java-sdk-$version.zip
unzip dropbox-java-sdk*
cd dropbox-java-sdk*
mvn \
install:install-file \
-Dfile=lib/dropbox-java-sdk-$version.jar \
-DgroupId=com.dropbox.sdk \
-DartifactId=dropbox-client \
-Dversion=$version \
-Dpackaging=jar \
-DpomFile=pom.xml
rm -fr dropbox-java-sdk*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment