diff --git a/modules/directives/src/main/scala/scala/build/preprocessing/directives/UsingScalaVersionDirectiveHandler.scala b/modules/directives/src/main/scala/scala/build/preprocessing/directives/UsingScalaVersionDirectiveHandler.scala index 2a5f534d51..416da14d39 100644 --- a/modules/directives/src/main/scala/scala/build/preprocessing/directives/UsingScalaVersionDirectiveHandler.scala +++ b/modules/directives/src/main/scala/scala/build/preprocessing/directives/UsingScalaVersionDirectiveHandler.scala @@ -16,7 +16,7 @@ case object UsingScalaVersionDirectiveHandler extends UsingDirectiveHandler { "//> using scala \"3.0.2\"", "//> using scala \"2.13\"", "//> using scala \"2\"", - "//> using scala \"2.13.6\", \"2.12.15\"" + "//> using scala \"2.13.6\", \"2.12.16\"" ) def keys = Seq("scala") diff --git a/website/docs/commands/compile.md b/website/docs/commands/compile.md index e314607ded..c172d43da0 100644 --- a/website/docs/commands/compile.md +++ b/website/docs/commands/compile.md @@ -214,7 +214,7 @@ scala-cli -S 2.13.8 --scalac-help Other scalac print help options (like `-X`, `-Xshow-phases`, `-Vphases`, etc.) are supported as well. ```bash -scala-cli -S 2.12.15 -Xshow-phases +scala-cli -S 2.12.16 -Xshow-phases # # phase name id description # ---------- -- ----------- diff --git a/website/docs/cookbooks/scala-versions.md b/website/docs/cookbooks/scala-versions.md index 462c1dbfbb..a3d60ac5e2 100644 --- a/website/docs/cookbooks/scala-versions.md +++ b/website/docs/cookbooks/scala-versions.md @@ -75,11 +75,11 @@ and this: scala-cli -S 2.12 ScalaVersion.scala ``` In the first example (`-S 2`), the application picks up the latest Scala 2 stable release (`2.13.7` at the time of this writing). -In the second example, the application picks up the latest stable release of `2.12` (which is `2.12.15` at the time of this writing). +In the second example, the application picks up the latest stable release of `2.12` (which is `2.12.16` at the time of this writing). You can also pin the version of the language within a `.scala` file with `using` directives. @@ -103,10 +103,10 @@ scala-cli ScalaVersion.scala version.scala ``` -The output at the time of this writing is "`2.12.15`". +The output at the time of this writing is "`2.12.16`". The `scala-cli` philosophy is “command line first,” so any configuration information that’s passed to the command line will override `using` directives. So when you run this command with the `-S` option: diff --git a/website/docs/reference/directives.md b/website/docs/reference/directives.md index 501ed7714a..f90b710563 100644 --- a/website/docs/reference/directives.md +++ b/website/docs/reference/directives.md @@ -179,7 +179,7 @@ Set the default Scala version `//> using scala "2"` -`//> using scala "2.13.6", "2.12.15"` +`//> using scala "2.13.6", "2.12.16"` ### Scala.js options