|
1 |
| -<h2>The most popular way to get Scala is either using Scala through sbt, the Scala build tool, or to use Scala through an IDE.</h2> |
2 |
| -<div class="install-steps"> |
3 |
| - <div class="step arrow"> |
4 |
| - <img src="/resources/img/download/arrow-asset.png" alt=""> |
5 |
| - <div class="number-step">1</div> |
6 |
| - <div class="text-step"> |
7 |
| - <h3>First, make sure you have the Java 8 JDK (or Java 11 JDK) installed.</h3> |
8 |
| - <p>To check, open the terminal and type:</p> |
9 |
| - <p><code>java -version</code><span>(Make sure you have version 1.8 or 11.)</span></p> |
10 |
| - <p><i>(If you don't have it installed, download Java from <a href="https://www.oracle.com/java/technologies/javase-jdk8-downloads.html">Oracle Java 8</a>, <a href="https://www.oracle.com/java/technologies/javase-jdk11-downloads.html">Oracle Java 11</a>, or <a href="https://adoptopenjdk.net/">AdoptOpenJDK 8/11</a>. Refer <a href="https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html">JDK Compatibility</a> for Scala/Java compatiblity detail.</i></p> |
11 |
| - </div> |
12 |
| - </div> |
13 |
| - <div class="step"> |
14 |
| - <div class="number-step">2</div> |
15 |
| - <div class="text-step"> |
16 |
| - <h3>Then, install Scala:</h3> |
17 |
| - <p>...either by installing an IDE such as IntelliJ, or sbt, Scala's build tool.</p> |
18 |
| - </div> |
19 |
| - </div> |
20 |
| - <div class="download-options"> |
21 |
| - <div class="download-left"> |
22 |
| - <span class="or">or</span> |
23 |
| - <div class="description"> |
24 |
| - <img src="/resources/img/download/arrow-left.png" alt=""> |
25 |
| - <p>Best if you prefer a full-featured IDE (recommended for beginners)</p> |
26 |
| - </div> |
27 |
| - <a href="https://www.jetbrains.com/idea" class="btn-download" id="download-intellij-link"> |
28 |
| - <i class="fa fa-download"></i> |
29 |
| - <span>Download intellij</span> |
30 |
| - </a> |
31 |
| - <ul> |
32 |
| - {% include tutorial-list.html column=1 %} |
33 |
| - </ul> |
34 |
| - </div> |
35 |
| - <div class="download-right"> |
36 |
| - <div class="description"> |
37 |
| - <img src="/resources/img/download/arrow-right.png" alt=""> |
38 |
| - <p>Best if you are familiar with the command line</p> |
39 |
| - </div> |
40 |
| - <a href="https://www.scala-sbt.org/download.html" class="btn-download" id="download-sbt-link"> |
41 |
| - <i class="fa fa-download"></i> |
42 |
| - <span>Download Sbt</span> |
43 |
| - </a> |
44 |
| - <ul> |
45 |
| - {% include tutorial-list.html column=0 %} |
46 |
| - </ul> |
47 |
| - </div> |
48 |
| - </div> |
49 |
| - |
50 |
| - <p class="bottom-lead"> |
51 |
| - Compared to other programming languages, installing Scala is a bit unusual. Scala is unusual because it is usually installed for each of your Scala projects rather than being installed system-wide. Both of the above options manage (via sbt) a specific Scala version per Scala project you create. |
52 |
| - <br><br> |
53 |
| - But it's also possible to "install" Scala in numerous other ways; e.g., grab Scala binaries and use Scala from the command line or use Scala in your browser! |
54 |
| - <br><br> |
55 |
| - </p> |
| 1 | +<p>Are you looking for <a href="{{ site.baseurl }}/download/all.html">another release</a> of Scala?</p> |
| 2 | +<h3>Release Notes</h3> |
| 3 | +For a summary of important changes, see the <a href="https://github.com/scala/scala/releases">GitHub release notes</a>. |
| 4 | +<br/><small>(Or consult our archive of <a href="{{ site.baseurl }}/blog/announcements/">older release |
| 5 | + notes</a>.)</small> |
56 | 6 |
|
57 |
| - <!-- <p class="bottom-lead"><h2>Other</h2></p> --> |
58 |
| - |
59 |
| - <div class="step other-ways-lead"> |
60 |
| - <div class="number-step"><i class="fa fa-ellipsis-h" aria-hidden="true"></i></div> |
61 |
| - <div class="text-step"> |
62 |
| - <h2>Other ways to install Scala</h2> |
63 |
| - <ul> |
64 |
| - <li> |
65 |
| - <a id="download-binaries">Download the Scala binaries for <span id="users-os"></span></a> |
66 |
| - <br/><span class="install"><a href="{{ site.baseurl }}/download/install.html">Need help running the binaries?</a></span> |
67 |
| - </li> |
68 |
| - <li>Using <a href="https://sdkman.io/">SDKMAN!</a>, you can easily <a href="https://sdkman.io/sdks#scala">install specific versions of Scala</a> on any platform with <code>sdk install scala {{ site.scalaversion }}</code></li> |
69 |
| - <li>On macOS you can also use <a href="https://brew.sh/">Homebrew</a> and existing <a href="https://formulae.brew.sh/formula/scala">Scala Formulae</a><br/><code>brew update</code><br/><code>brew install scala</code></li> |
70 |
| - <li>With <a href="https://www.macports.org/">MacPorts</a>, you can get Scala using <code>sudo port install scala2.x</code>command.<br/> For example to install Scala 2.12 simply use<code>sudo port install scala2.12</code></li> |
71 |
| - <li>Use <a href="https://scastie.scala-lang.org">Scastie</a> to run single-file Scala programs in your browser using multiple Scala compilers; the production Scala 2.x compilers, Scala.js, Dotty, and Typelevel Scala. Save and share executable Scala code snippets.</li> |
72 |
| - <li>Try Scala in the browser via <a href="https://scalafiddle.io/">ScalaFiddle</a>. This lets you run single-file Scala programs in your browser using Scala.js, including graphical/interactive examples such as <a href="https://scalafiddle.io/sf/KOsXSKv/0">Oscilloscope</a> or <a href="https://scalafiddle.io/sf/4beVrVc/1">Ray Tracer</a></li> |
73 |
| - <li><a href="https://ammonite.io/">Get Ammonite</a>, a popular Scala REPL</li> |
74 |
| - </ul> |
75 |
| - <p>Or are you looking for <a href="{{ site.baseurl }}/download/all.html">previous releases</a> of Scala?</p> |
76 |
| - </div> |
| 7 | +<div class="install-steps"> |
| 8 | + <div class="text-step"> |
| 9 | + <h2>Ways to Install This Release</h2> |
| 10 | + <ul> |
| 11 | + <li> |
| 12 | + Using <a |
| 13 | + href="https://docs.scala-lang.org/getting-started/index.html#using-the-scala-installer-recommended-way">Coursier |
| 14 | + CLI</a>, run:<br> |
| 15 | + <code>cs install scala:{{ page.release_version }} && cs install scalac:{{ page.release_version }}</code>. |
| 16 | + </li> |
| 17 | + <li> |
| 18 | + <a id="download-binaries">Download the Scala binaries for <span id="users-os"></span></a> |
| 19 | + <br /><span class="install"><a href="{{ site.baseurl }}/download/install.html">Need help running the |
| 20 | + binaries?</a></span> |
| 21 | + </li> |
| 22 | + <li><a href="/documentation/getting-started-intellij-track/getting-started-with-scala-in-intellij.html">Download and |
| 23 | + use Scala</a><span> with </span><a href="https://www.jetbrains.com/idea">IntelliJ</a><span> and then </span><a |
| 24 | + href="/documentation/getting-started-intellij-track/building-a-scala-project-with-intellij-and-sbt.html">build a |
| 25 | + project</a><span>, then </span><a |
| 26 | + href="/documentation/getting-started-intellij-track/testing-scala-in-intellij-with-scalatest.html">test it.</a> |
| 27 | + </li> |
| 28 | + <li>Using <a href="https://sdkman.io/">SDKMAN!</a>, you can easily <a href="https://sdkman.io/sdks#scala">install |
| 29 | + specific versions of Scala</a> on any platform with <code>sdk install scala {{ site.scalaversion }}</code></li> |
| 30 | + <li>On macOS you can also use <a href="https://brew.sh/">Homebrew</a> and existing <a |
| 31 | + href="https://formulae.brew.sh/formula/scala">Scala |
| 32 | + Formulae</a><br /><code>brew update</code><br /><code>brew install scala</code></li> |
| 33 | + <li>With <a href="https://www.macports.org/">MacPorts</a>, you can get Scala using |
| 34 | + <code>sudo port install scala2.x</code>command.<br /> For example to install Scala 2.12 simply |
| 35 | + use<code>sudo port install scala2.12</code></li> |
| 36 | + <li>Use <a href="https://scastie.scala-lang.org">Scastie</a> to run single-file Scala programs in your browser using |
| 37 | + multiple Scala compilers; the production Scala 2.x compilers, Scala.js, Dotty, and Typelevel Scala. Save and share |
| 38 | + executable Scala code snippets.</li> |
| 39 | + <li>Try Scala in the browser via <a href="https://scalafiddle.io/">ScalaFiddle</a>. This lets you run single-file |
| 40 | + Scala programs in your browser using Scala.js, including graphical/interactive examples such as <a |
| 41 | + href="https://scalafiddle.io/sf/KOsXSKv/0">Oscilloscope</a> or <a href="https://scalafiddle.io/sf/4beVrVc/1">Ray |
| 42 | + Tracer</a></li> |
| 43 | + <li><a href="https://ammonite.io/">Get Ammonite</a>, a popular Scala REPL</li> |
| 44 | + </ul> |
77 | 45 | </div>
|
78 |
| - |
79 |
| - |
80 |
| - <h3>Release Notes</h3> |
81 |
| - For a summary of important changes, see the <a href="https://github.com/scala/scala/releases">GitHub release notes</a>. |
82 |
| - <br/><small>(Or consult our archive of <a href="{{ site.baseurl }}/blog/announcements/">older release notes</a>.)</small> |
83 |
| - |
84 | 46 | {% include download-resource-list.html %}
|
85 |
| - <h3>License</h3> |
86 |
| - <p>The Scala distribution is released under the {{page.license}}.</p> |
87 | 47 | </div>
|
| 48 | +<h3>License</h3> |
| 49 | +<p>The Scala {{ page.release_version }} distribution is released under the {{page.license}}.</p> |
0 commit comments