Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

scala

sbt

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 pick 2.9 by default.

like image 515
prassee Avatar asked Feb 01 '26 12:02

prassee


1 Answers

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.

like image 186
oluies Avatar answered Feb 03 '26 06:02

oluies