Skip to content

Instantly share code, notes, and snippets.

@SanCoder-Q
Last active July 28, 2016 00:59
Show Gist options
  • Save SanCoder-Q/a9a3cf78bdec162269d34ebdeaca9227 to your computer and use it in GitHub Desktop.
Save SanCoder-Q/a9a3cf78bdec162269d34ebdeaca9227 to your computer and use it in GitHub Desktop.
#!/bin/sh
COURSIER_URL=https://raw.githubusercontent.com/alexarchambault/coursier/v1.0.0-M12/coursier
test -e ./.coursier/cr || (mkdir -p ./.coursier && curl -s --output ./.coursier/cr $COURSIER_URL && chmod +x ./.coursier/cr)
CLASSPATH="$(./.coursier/cr fetch -q -p \
\
com.chuusai:shapeless_2.11:2.3.1 \
com.lihaoyi:ammonite-repl_2.11.8:0.5.8 \
\
)" java ammonite.repl.Main --predef 'import shapeless._'
@SanCoder-Q
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment