Skip to content

Commit d72c8e3

Browse files
committed
Upgrade to sbt 1
1 parent b2fe44c commit d72c8e3

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ with `sbt run`, `sbt console` will start a Dotty REPL.
99

1010
If compiling this example project fails, you probably have a global sbt plugin
1111
that does not work with dotty, try to disable all plugins in
12-
`~/.sbt/0.13/plugins` and `~/.sbt/0.13`.
12+
`~/.sbt/1.0/plugins` and `~/.sbt/1.0`.
1313

1414
### IDE support
1515

@@ -27,29 +27,29 @@ You will need to make the following adjustments to your build:
2727

2828
### project/plugins.sbt
2929
```scala
30-
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.1.7")
30+
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.2.1")
3131
```
3232

3333
### project/build.properties
3434
```scala
35-
sbt.version=0.13.15
35+
sbt.version=1.1.4
3636
```
3737

38-
Older versions of sbt are not supported, sbt 1.0 is not yet supported either.
38+
Older versions of sbt are not supported.
3939

4040

4141
### build.sbt
4242
Any version number that starts with `0.` is automatically recognized as Dotty by
4343
the `sbt-dotty` plugin, you don't need to set up anything:
4444

4545
```scala
46-
scalaVersion := "0.7.0-RC1"
46+
scalaVersion := "0.8.0-RC1"
4747
```
4848

4949
#### Nightly builds
5050
If the latest release of Dotty is missing a bugfix or feature you need, you may
5151
wish to use a nightly build. Look at the bottom of
52-
https://repo1.maven.org/maven2/ch/epfl/lamp/dotty_0.7/ to find the version
52+
https://repo1.maven.org/maven2/ch/epfl/lamp/dotty_0.8/ to find the version
5353
number for the latest nightly build. Alternatively, you can set `scalaVersion :=
5454
dottyLatestNightlyBuild.get` to always use the latest nightly build of dotty.
5555

@@ -79,7 +79,7 @@ you may be able to get them to work on Dotty by replacing:
7979
by:
8080

8181
```scala
82-
libraryDependencies += ("a" %% "b" % "c").withDottyCompat()
82+
libraryDependencies += ("a" %% "b" % "c").withDottyCompat(scalaVersion.value)
8383
```
8484

8585
This will have no effect when compiling with Scala 2.x, but when compiling

build.sbt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
lazy val root = (project in file(".")).
2-
settings(
1+
lazy val root = project
2+
.in(file("."))
3+
.settings(
34
name := "dotty-example-project",
45
description := "Example sbt project that compiles using Dotty",
56
version := "0.1",

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.13.15
1+
sbt.version=1.1.4

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.1.7")
1+
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.2.1")

0 commit comments

Comments
 (0)