@@ -34,20 +34,24 @@ Along with managing JVMs, `cs setup` also installs useful command-line tools:
34
34
- The [ sbt] ( https://www.scala-sbt.org/ ) build tool
35
35
- [ Ammonite] ( https://ammonite.io/ ) , an enhanced REPL
36
36
- [ scalafmt] ( https://scalameta.org/scalafmt/ ) , the Scala code formatter
37
- - ` scalac ` (the Scala 2 compiler)
38
- - ` scala ` (the Scala 2 REPL and script runner).
37
+ - ` scalac ` (the Scala compiler)
38
+ - ` scala ` (the Scala REPL and script runner).
39
39
40
40
For more information about ` cs ` , read
41
41
[ coursier-cli documentation] ( https://get-coursier.io/docs/cli-overview ) .
42
42
43
- > Currently, ` cs setup ` installs the Scala 2 compiler and runner (the ` scalac ` and
44
- > ` scala ` commands, respectively). This is usually not an issue because most projects
45
- > use a build tool that works with both Scala 2 and Scala 3.
46
- > Nevertheless, you can install the Scala 3 compiler and runner as command-line tools
47
- > by running the following additional commands:
43
+ > ` cs setup ` installs the Scala 3 compiler and runner by default (the ` scalac ` and
44
+ > ` scala ` commands, respectively). Whether you intend to use Scala 2 or 3,
45
+ > this is usually not an issue because most projects use a build tool that will
46
+ > use the correct version of Scala irrespective of the one installed "globally".
47
+ > Nevertheless, you can always launch a specific version of Scala using
48
48
> ```
49
- > $ cs install scala3-compiler
50
- > $ cs install scala3
49
+ > $ cs launch scala:{{ site.scala-version }}
50
+ > $ cs launch scalac:{{ site.scala-version }}
51
+ > ```
52
+ > If you prefer Scala 2 to be run by default, you can force that version to be installed with:
53
+ > ```
54
+ > $ cs install scala:{{ site.scala-version }} scalac:{{ site.scala-version }}
51
55
> ```
52
56
53
57
### ...or manually
@@ -164,7 +168,7 @@ There are a multitude of mailing lists and real-time chat rooms in case you want
164
168
165
169
<!-- Hidden elements whose content are used to provide OS-specific download instructions.
166
170
-- This is handled in `resources/js/functions.js`.
167
- -->
171
+ -->
168
172
<div style="display:none" id="stepOne-linux">
169
173
<code class="hljs">$ curl -fLo cs https://git.io/coursier-cli-linux && chmod +x cs && ./cs setup </code> <br>
170
174
</div>
0 commit comments