How to show the Scala version SBT is using

sbt FAQ: How do I show the Scala version that sbt is using?

Short answer

Issue the scalaVersion command at the sbt prompt.

Longer answer

I was having a problem getting a certain Scala feature to work when I compiled my code with sbt, and even though I knew I had set the Scala version in my build.sbt file, I wanted a way to double-check that sbt was indeed using that Scala version. That’s when I found I can issue the scalaVersion at the sbt prompt.

More info

Also, these sbt commands can point you to more information:

  • about
  • settings
  • help settings

And here are a few related links: