show sbt scala version
set scala version at build.sbt
1 | scalaVersion := "2.11.8" |
show sbt version
1 | sbt about |
this can show sbt version
project path
plugins
scala version
set and show scalacOptions
add feature parameter to scalacOptions1
set scalacOptions += "-feature"
show scalacOptions1
2
3show scalacOptions
[info] List(-deprecation, -unchecked, -encoding, utf8, -feature)
show scalaInstance, this will show scala version
, library jar
and compiler jar
1
2
3[info] Scala instance{version label 2.11.6, actual version 2.11.6,
library jar: /home/oo/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.6.jar,
compiler jar: /home/oo/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.11.6.jar}
sbt history commands
sbt shell remembers history, even if you exit sbt and restart it. The simplest way to access history is with the up arrow key. The following commands are also supported:
1 | ! Show history command help. |
Specifying the sbt version
In project/build.properties that specifies the sbt version as follows:
1 | sbt.version=0.13.15 |