Created
May 28, 2020 15:18
-
-
Save nadavwr/598ea5f66d7b171ddf57b6c6667a8e6a to your computer and use it in GitHub Desktop.
GitPod Metals setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: | |
file: .gitpod.Dockerfile | |
vscode: | |
extensions: | |
- [email protected]:kklqw+c/dNRmtTU8B5repw== | |
- [email protected]: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