docker-sbt
docker-sbt copied to clipboard
Not printing correct scala 3 version
At some point in the docker build we do a sanity check but that actually prints the scala library version on Scala 3
see https://github.com/lampepfl/dotty/issues/15796#issuecomment-1202746450
we might be able to use
scala> dotty.tools.dotc.config.Properties.simpleVersionString
val res0: String = 3.0.1
more context at https://stackoverflow.com/questions/6967788/how-to-retrieve-scalas-version-in-repl
and a more elaborate check is available here but we probably want to stick to a one-liner that just validates we can compile some code https://gist.github.com/romanowski/de14691cab7340134e197419bc48919a
scala --version
Scala code runner version 2.13.8 -- Copyright 2002-2021, LAMP/EPFL and Lightbend, Inc.
scala --version
Scala code runner version 3.1.3 -- Copyright 2002-2022, LAMP/EPFL