What is the difference of running `scala` and `sbt console`?

后端 未结 2 1077
你的背包
你的背包 2021-02-03 21:25

What is the difference of running the scala shell in these different ways?

2条回答
  •  离开以前
    2021-02-03 21:51

    If you call scala, you will get whatever scala version is installed on the path of your operating system.

    If you call sbt console, you get the scala version configured in the sbt build (build.sbt) with all libraries that are used in the build already on the classpath.

    See this answer for details.

提交回复
热议问题