Skip to content

Commit 3286e5f

Browse files
authored
Dotty doc "Getting Started" update
Add an explanation on how to compile and install the dotty compiler in a local repository, and use it with sbt. 2nd try to make a pull request: the first try, I didn't sign the Scala CLA.
1 parent 97a6f30 commit 3286e5f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/docs/contributing/getting-started.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,19 @@ or via bash:
6464
```bash
6565
$ scala
6666
```
67+
Publish to local repository
68+
---------------------------------
69+
To test our cloned compiler on local projects:
70+
71+
```bash
72+
$ sbt publishLocal
73+
```
74+
Then in the `build.sbt` file of a test project:
75+
76+
```bash
77+
ThisBuild / scalaVersion := "<dotty-version>-bin-SNAPSHOT"
78+
```
79+
where `dotty-version` can be found in the file `project/Build.scala`, like `3.0.0-M2`
6780

6881

6982
Generating Documentation

0 commit comments

Comments
 (0)