How to configure SBT to select the desired scala version (2.9)

When creating a project with the sbt command, version 2.7.X scala is always requested, however, I have 2.9.0 and installed sbt 0.7.7 there is a way to configure sbt to choose 2.9 by default.

+3
source share
2 answers

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

See Migrating from SBT 0.7.x to 0.10.x or Quick Configuration Examples . A complete configuration example shows a Scala style configuration.

Threre - ~/.sbt/plugins/, . , .

+9

build.properties. SBT . , SBT .

0

All Articles