How to call the scala interpreter in a Simple Build Tool project?

被刻印的时光 ゝ 提交于 2019-12-03 01:29:26
sorowd

Take a look at the SBT wiki: http://www.scala-sbt.org/0.13/docs/Faq.html#How+do+I+use+the+Scala+interpreter+in+my+code%3F

There's an entry about getting the interpreter running.

sbt console // Starts a Scala interpreter

Here is the new FAQ (the previous answer is obsolete)

http://www.scala-sbt.org/0.12.4/docs/faq.html

You can find also the FAQ for more recent versions.
Note that sbt console-quick loads the console without the dependencies.

In more recent sbt versions (0.12 and newer), the following should suffice:

fork in run := true
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!