Skip to content

Instantly share code, notes, and snippets.

@neowinx
Last active February 1, 2017 11:03
Show Gist options
  • Save neowinx/2026d4024babb6b0cdef66600594b37f to your computer and use it in GitHub Desktop.
Save neowinx/2026d4024babb6b0cdef66600594b37f to your computer and use it in GitHub Desktop.
Improving SBT dependency resolution
# Let's accelerate sbt reosuluion dependency
# diclaimer: This wont work for sbt >= 1.*
mkdir -p ~/.sbt/0.13/plugins/
echo 'addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-M15")' > ~/.sbt/0.13/plugins/build.sbt
curl -L -o coursier https://git.io/vgvpD && chmod +x coursier
./coursier fetch -r "ivy:https://repo.typesafe.com/typesafe/ivy-releases/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]" com.typesafe.activator:activator-launcher:1.3.12
mkdir -p ~/.ivy2/cache
cp -vr ~/.coursier/cache/v1/https/repo.typesafe.com/typesafe/ivy-releases/* ~/.ivy2/cache/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment