Skip to content

Commit 9ce2602

Browse files
committed
Add instructions on using Dotty in your own project
1 parent 8f0b407 commit 9ce2602

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ https://github.com/smarter/dotty-bridge#implementation-status for what works and
2424
what doesn't.
2525

2626
If compiling this example project fails, you probably have a global sbt plugin
27-
that does not work with dotty, try to disable all plugins in `~/.sbt/0.13/plugins`.
27+
that does not work with dotty, try to disable all plugins in
28+
`~/.sbt/0.13/plugins`.
29+
30+
### Using Dotty in your own project
31+
32+
1. [Use sbt 0.13.11 or newer](https://github.com/smarter/dotty-example-project/blob/master/project/build.properties).
33+
2. Configure your build like explained in [build.sbt](https://github.com/smarter/dotty-example-project/blob/master/build.sbt#L9-L10)
2834

2935
### Discuss
3036

build.sbt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ lazy val root = (project in file(".")).
33
name := "dotty-example-project",
44
description := "Example sbt project that compiles using Dotty",
55
version := "0.1",
6-
76
mainClass in (Compile, run) := Some("Hello"),
87

8+
9+
// All the settings set below this line are important to get your project
10+
// to compile with Dotty. Please read the comments carefully.
11+
912
// Dotty version
1013
scalaVersion := "0.1-SNAPSHOT",
1114

0 commit comments

Comments
 (0)