Scala REPL import SBT file -
i have sbt file has following contents:
name := "scala playground" version := "1.0" scalaversion := "2.11.6" resolvers += "typesafe repo" @ "http://repo.typesafe.com/typesafe/releases/" librarydependencies ++= seq( "com.netflix.rxjava" %% "rxjava-scala" % "0.19.1", "com.typesafe.play" %% "play-json" % "2.2.1" )
saved scala-playground.sbt. want use in scala repl. when tried following:
sbt scala-playground.sbt
i got following error:
[info] set current project scala playground (in build file:/home/joe/desktop/) [error] not valid command: scala-playground [error] not valid project id: scala-playground [error] expected ':' (if selecting configuration) [error] not valid key: scala-playground (similar: scala-version, scalac-options, scala-binary-version) [error] scala-playground [error] ^
i can't see stupid in sbt file. throw light on it? proper way dependencies inside scala repl?
all want in dependencies inside scala repl, can run , evaluate libraries.
the command line arguments sbt
commands, not file want use. go directory scala-playground.sbt
file , run there:
sbt console
sbt
should automatically load scala-playground.sbt
file current directory , open scala console.
Comments
Post a Comment