Skip to content

Commit a2a27eb

Browse files
authored
Merge pull request #2475 from tgodzik/sbt-welcome
feature: Add Scala 3 section for getting started with sbt
2 parents f98de8a + 1bb59fe commit a2a27eb

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

_getting-started/sbt-track/getting-started-with-scala-and-sbt-on-the-command-line.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ We assume you know how to use a terminal.
2626
* [Linux](https://www.scala-sbt.org/1.x/docs/Installing-sbt-on-Linux.html)
2727

2828
## Create the project
29+
30+
{% tabs sbt-welcome-1 class=tabs-scala-version %}
31+
{% tab 'Scala 2' for=sbt-welcome-1 %}
32+
2933
1. `cd` to an empty folder.
3034
1. Run the following command `sbt new scala/hello-world.g8`.
3135
This pulls the 'hello-world' template from GitHub.
@@ -34,6 +38,21 @@ It will also create a `target` folder, which you can ignore.
3438
create a project called "hello-world".
3539
1. Let's take a look at what just got generated:
3640

41+
{% endtab %}
42+
{% tab 'Scala 3' for=sbt-welcome-1 %}
43+
44+
1. `cd` to an empty folder.
45+
1. Run the following command `sbt new scala/scala3.g8`.
46+
This pulls the 'scala3' template from GitHub.
47+
It will also create a `target` folder, which you can ignore.
48+
1. When prompted, name the application `hello-world`. This will
49+
create a project called "hello-world".
50+
1. Let's take a look at what just got generated:
51+
52+
{% endtab %}
53+
{% endtabs %}
54+
55+
3756
```
3857
- hello-world
3958
- project (sbt uses this to install and manage plugins and dependencies)

0 commit comments

Comments
 (0)