@@ -11,13 +11,20 @@ If compiling this example project fails, you probably have a global sbt plugin
11
11
that does not work with dotty, try to disable all plugins in
12
12
` ~/.sbt/0.13/plugins ` and ` ~/.sbt/0.13 ` .
13
13
14
+ ### IDE support
15
+
16
+ Dotty comes built-in with IDE support, to try it out see
17
+ http://dotty.epfl.ch/docs/usage/ide-support.html
18
+
14
19
## Making a new Dotty project
15
20
The fastest way to start a new Dotty project is to use one of the following templates:
16
21
* [ Simple Dotty project] ( https://github.com/lampepfl/dotty.g8 )
17
22
* [ Dotty project that cross-compiles with Scala 2] ( https://github.com/lampepfl/dotty-cross.g8 )
18
23
19
24
## Using Dotty in an existing project
20
25
26
+ You will need to make the following adjustments to your build:
27
+
21
28
### project/plugins.sbt
22
29
``` scala
23
30
addSbtPlugin(" ch.epfl.lamp" % " sbt-dotty" % " 0.1.4" )
@@ -39,14 +46,18 @@ the `sbt-dotty` plugin, you don't need to set up anything:
39
46
scalaVersion := " 0.2.0-RC1"
40
47
```
41
48
42
- New builds of dotty are published nightly, look at the bottom of
43
- https://repo1.maven.org/maven2/ch/epfl/lamp/dotty_0.3/ to find the latest version
44
- number. Alternatively, you can set ` scalaVersion := dottyLatestNightlyBuild.get `
45
- to always use the latest nightly build of dotty.
49
+ #### Nightly builds
50
+ If the latest release of Dotty is missing a bugfix or feature you need, you may
51
+ wish to use a nightly build. Look at the bottom of
52
+ https://repo1.maven.org/maven2/ch/epfl/lamp/dotty_0.3/ to find the version
53
+ number for the latest nightly build. Alternatively, you can set `scalaVersion :=
54
+ dottyLatestNightlyBuild.get` to always use the latest nightly build of dotty.
46
55
47
- If you want to migrate an existing library, it might be a good idea to start out
48
- with the compatibility mode (note that this mode affects typechecking and thus
49
- may prevent some valid Dotty code from compiling) by adding to ` build.sbt ` :
56
+ ## Getting your project to compile with Dotty
57
+
58
+ When porting an existing project, it's a good idea to start out with the Scala 2
59
+ compatibility mode (note that this mode affects typechecking and thus may
60
+ prevent some valid Dotty code from compiling) by adding to your ` build.sbt ` :
50
61
51
62
``` scala
52
63
scalacOptions ++= { if (isDotty.value) Seq (" -language:Scala2" ) else Nil }
@@ -78,11 +89,6 @@ works because Dotty is currently retro-compatible with Scala 2.x.
78
89
** NOTE** : Dotty's retro-compatibility with Scala 2.x will be dropped before
79
90
Dotty is released, you should not rely on it.
80
91
81
- ## IDE support
82
-
83
- Dotty comes built-in with IDE support, to try it out see
84
- http://dotty.epfl.ch/docs/usage/ide-support.html
85
-
86
92
## Discuss
87
93
88
94
Feel free to come chat with us on the
0 commit comments