Why does 0.13.6 load Scala 2.10.4 by default?

Why does SBT 0.13.6 load Scala 2.10.4 by default?
Even if Scala version (default: latest release) is written in C:\Program Files (x86)\sbt\conf\sbtopts , which seems to be untrue.

 C:\Users\Joan>sbt scala-version Getting org.fusesource.jansi jansi 1.11 ... :: retrieving :: org.scala-sbt#boot-jansi confs: [default] 1 artifacts copied, 0 already retrieved (111kB/15ms) Getting org.scala-sbt sbt 0.13.6 ... :: retrieving :: org.scala-sbt#boot-app confs: [default] 44 artifacts copied, 0 already retrieved (13750kB/563ms) Getting Scala 2.10.4 (for sbt)... :: retrieving :: org.scala-sbt#boot-scala confs: [default] 5 artifacts copied, 0 already retrieved (24459kB/375ms) [info] Set current project to joan (in build file:/C:/Users/Joan/) [info] 2.10.4 

Greetings

+5
source share
1 answer

Since sbt built on scala 2.10.4, as you can easily check here .

In your own project, just specify the version of scala that you want to use in the same way as sbt, i.e. by providing scalaVersion build scalaVersion .

As a rule, a good idea is not to depend on default.

+5
source

Source: https://habr.com/ru/post/1203878/


All Articles