sbt - Scala version not updating -


my project used scala version 2.10.2. trying update 2.11.4. have updated build.sbt. when run sbt compile still shows me resolving org.scala-lang#scala-library;2.10.2 .... believe means scala version hasn't been updated. doing wrong?

i hope have made question clear. if there confusion please ask. in advance.

you can use show see value of setting:

% sbt [info] loading project definition ... [info] set current project ... > show scalaversion [info] 2.12.0-m1 

scalaversion tells scala version project built with. can verify using console:

> console [info] starting scala interpreter... [info]  welcome scala version 2.12.0-m1 (java hotspot(tm) 64-bit server vm, java 1.8.0_45). type in expressions have them evaluated. type :help more information.  scala> scala.util.properties.versionstring res0: string = version 2.12.0-m1 

this may different scala version used compile build definition. sbt 0.13 uses scala 2.10 that:

> eval scala.util.properties.versionstring [info] ans: string = version 2.10.4 

you can't change that; it's determined sbt version.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -