From 1bb59fed6db4eb86048277fda629bd327fcce608 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Tue, 26 Jul 2022 14:40:01 +0200 Subject: [PATCH] feature: Add Scala 3 section for getting started with sbt --- ...-with-scala-and-sbt-on-the-command-line.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/_getting-started/sbt-track/getting-started-with-scala-and-sbt-on-the-command-line.md b/_getting-started/sbt-track/getting-started-with-scala-and-sbt-on-the-command-line.md index 47ffcbf72e..eec4d43631 100644 --- a/_getting-started/sbt-track/getting-started-with-scala-and-sbt-on-the-command-line.md +++ b/_getting-started/sbt-track/getting-started-with-scala-and-sbt-on-the-command-line.md @@ -26,6 +26,10 @@ We assume you know how to use a terminal. * [Linux](https://www.scala-sbt.org/1.x/docs/Installing-sbt-on-Linux.html) ## Create the project + +{% tabs sbt-welcome-1 class=tabs-scala-version %} +{% tab 'Scala 2' for=sbt-welcome-1 %} + 1. `cd` to an empty folder. 1. Run the following command `sbt new scala/hello-world.g8`. This pulls the 'hello-world' template from GitHub. @@ -34,6 +38,21 @@ It will also create a `target` folder, which you can ignore. create a project called "hello-world". 1. Let's take a look at what just got generated: +{% endtab %} +{% tab 'Scala 3' for=sbt-welcome-1 %} + +1. `cd` to an empty folder. +1. Run the following command `sbt new scala/scala3.g8`. +This pulls the 'scala3' template from GitHub. +It will also create a `target` folder, which you can ignore. +1. When prompted, name the application `hello-world`. This will +create a project called "hello-world". +1. Let's take a look at what just got generated: + +{% endtab %} +{% endtabs %} + + ``` - hello-world - project (sbt uses this to install and manage plugins and dependencies)