From b8645d3af5a590eda63ca9d807690099be5676e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Doeraene?= Date: Fri, 20 Mar 2020 12:22:05 +0100 Subject: [PATCH 1/2] Blog post about the one-click install. --- _posts/2020-03-23-one-click-install.md | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 _posts/2020-03-23-one-click-install.md diff --git a/_posts/2020-03-23-one-click-install.md b/_posts/2020-03-23-one-click-install.md new file mode 100644 index 000000000..affa172f3 --- /dev/null +++ b/_posts/2020-03-23-one-click-install.md @@ -0,0 +1,32 @@ +--- +layout: blog-detail +post-type: blog +by: Sébastien Doeraene +title: "One-click install for Scala" +--- + +Installing Scala has always been a task more challenging than necessary, with the potential to drive away beginners. +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? + +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). +For example, on Linux, all we now need is: + +```bash +$ curl -Lo cs https://git.io/coursier-cli-linux && chmod +x cs && ./cs setup +``` + +which will install all the following software, if not yet installed: + +* a JDK +* the build tools [sbt](https://www.scala-sbt.org/) and [mill](https://www.lihaoyi.com/mill/) +* the [Ammonite](https://ammonite.io/) enhanced REPL +* [scalafmt](https://scalameta.org/scalafmt/), the Scala formatter +* the [coursier](https://get-coursier.io/docs/cli-overview) CLI, to install further Scala-based applications +* the `scala` and `scalac` command-line tools + +With all those installed, we are ready to go! +Later, `cs update` can be used to update the installation. + +For power users, [the `cs setup` command](https://get-coursier.io/docs/cli-setup) offers more configuration options, such as a non-interactive mode. + +With this new simple, all-encompassing installer, we at the Scala Center hope to significantly reduce the burden of getting started with Scala. From 9bad55fca4495b4dedacbdfcb06d8ec84b08ddd7 Mon Sep 17 00:00:00 2001 From: Julien Richard-Foy Date: Mon, 29 Jun 2020 14:24:32 +0200 Subject: [PATCH 2/2] Change publication date to June 29 --- ...03-23-one-click-install.md => 2020-06-29-one-click-install.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename _posts/{2020-03-23-one-click-install.md => 2020-06-29-one-click-install.md} (100%) diff --git a/_posts/2020-03-23-one-click-install.md b/_posts/2020-06-29-one-click-install.md similarity index 100% rename from _posts/2020-03-23-one-click-install.md rename to _posts/2020-06-29-one-click-install.md