Skip to content

Commit 26ea5f2

Browse files
authored
Merge pull request #1130 from sjrd/one-click-install
One click install for Scala
2 parents 25b9cc1 + d15f64d commit 26ea5f2

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
layout: blog-detail
3+
post-type: blog
4+
by: Sébastien Doeraene
5+
title: "One-click install for Scala"
6+
---
7+
8+
Installing Scala has always been a task more challenging than necessary, with the potential to drive away beginners.
9+
Should I install Scala itself? sbt? Some other build tools? What about a better REPL like Ammonite? Oh and before all that I need to install Java?
10+
11+
To solve this problem, the Scala Center contracted Alexandre Archambault in January 2020 to add a one-click install of Scala through [coursier](https://get-coursier.io/docs/cli-overview).
12+
For example, on Linux, all we now need is:
13+
14+
```bash
15+
$ curl -Lo cs https://git.io/coursier-cli-linux && chmod +x cs && ./cs setup
16+
```
17+
18+
which will install all the following software, if not yet installed:
19+
20+
* a JDK
21+
* the build tools [sbt](https://www.scala-sbt.org/) and [mill](https://www.lihaoyi.com/mill/)
22+
* the [Ammonite](https://ammonite.io/) enhanced REPL
23+
* [scalafmt](https://scalameta.org/scalafmt/), the Scala formatter
24+
* the [coursier](https://get-coursier.io/docs/cli-overview) CLI, to install further Scala-based applications
25+
* the `scala` and `scalac` command-line tools
26+
27+
With all those installed, we are ready to go!
28+
Later, `cs update` can be used to update the installation.
29+
30+
For power users, [the `cs setup` command](https://get-coursier.io/docs/cli-setup) offers more configuration options, such as a non-interactive mode.
31+
32+
With this new simple, all-encompassing installer, we at the Scala Center hope to significantly reduce the burden of getting started with Scala.

0 commit comments

Comments
 (0)