Skip to content

Instantly share code, notes, and snippets.

@nadavwr
Created May 28, 2020 15:18
Show Gist options
  • Save nadavwr/598ea5f66d7b171ddf57b6c6667a8e6a to your computer and use it in GitHub Desktop.
Save nadavwr/598ea5f66d7b171ddf57b6c6667a8e6a to your computer and use it in GitHub Desktop.
GitPod Metals setup
FROM gitpod/workspace-full
USER gitpod
RUN brew install coursier/formulas/coursier
ENV COURSIER_CACHE /workspace/.coursier/cache/v1
RUN cs setup --yes --jvm 14 --apps sbt-launcher,scala,scalafmt,mill,mill-interactive
image:
file: .gitpod.Dockerfile
vscode:
extensions:
- scala-lang.scala@0.3.9:kklqw+c/dNRmtTU8B5repw==
- scalameta.metals@1.9.0:EyAIfy0ykjUn9htpw3f7GA==
tasks:
- init: |
METALS_VERSION="0.9.0"
echo "-sbt-dir /workspace/.sbt" >> .sbtopts
echo "-sbt-boot /workspace/.sbt/boot" >> .sbtopts
echo "-ivy /workspace/.ivy2" >> .sbtopts
cs fetch org.scalameta:metals_2.12:$METALS_VERSION
sbt -Dbloop.export-jar-classifiers=sources bloopInstall
bloop compile --cascade root
- command: |
bloop about
ports:
- port: 8212
onOpen: ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment