how to configure SBT to pick the desired scala version (2.9)

后端 未结 2 516
再見小時候
再見小時候 2021-01-20 11:44

While creating a project with sbt command it always prompts for the 2.7.X version of scala however I have 2.9.0 and sbt 0.7.7 installed is there a way to configure sbt to pi

2条回答
  •  遇见更好的自我
    2021-01-20 12:06

    If you use sbt version 0.10 instead it has changed a bit, in the build.sbt file you specify scalaVersion := "2.9.0-1" (default seem to be 2.8.1)

    See Migrating from SBT 0.7.x to 0.10.x or Quick Configuration Examples. The Full configuration example shows Scala style configuration.

    Threre is a ~/.sbt/plugins/ library where you store global plugins. But I do not yet know if you can define a global build properties.

提交回复
热议问题