Last active
February 15, 2018 22:41
-
-
Save eed3si9n/e0ff34162cdafa00c4b7776bf54b1c56 to your computer and use it in GitHub Desktop.
This file contains 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
$ pwd | |
/tmp/dockertest | |
$ docker run -it -v $HOME/.ivy2/local:/root/.ivy2/local --name sbttest openjdk:9-slim bash | |
apt-get update | |
apt-get install -y rsync | |
apt-get install -y bc | |
apt-get install -y vim | |
apt-get install -y gpg | |
echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 | |
apt-get update | |
apt-get install sbt | |
cd | |
mkdir -p work/hello | |
cd work/hello | |
# edit project/Dependencies.scala | |
cat project/Dependencies.scala | |
import sbt._ | |
object Dependencies { | |
lazy val scalaTest = "org.scalatest" %% "scalatest" % "3.0.3" | |
} | |
# end | |
# edit build.sbt | |
import Dependencies._ | |
lazy val root = (project in file(".")). | |
settings( | |
inThisBuild(List( | |
organization := "com.example", | |
scalaVersion := "2.12.3", | |
version := "0.1.0-SNAPSHOT" | |
)), | |
name := "Hello", | |
libraryDependencies += scalaTest % Test | |
) | |
# end | |
sbt | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment