Skip to content

Commit dc6a787

Browse files
committed
Setup Dotty build
1 parent 0956eff commit dc6a787

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: scala
2+
script:
3+
- sbt core/compile
4+
jdk:
5+
- oraclejdk8

build.sbt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ lazy val core = (project in file("core"))
6565
name := repo,
6666
description := "Simple, safe and intuitive I/O in Scala"
6767
)
68+
.settings(dottySettings)
6869

6970
lazy val akka = (project in file("akka"))
7071
.settings(commonSettings: _*)
@@ -74,6 +75,7 @@ lazy val akka = (project in file("akka"))
7475
description := "Reactive file watcher using Akka actors",
7576
libraryDependencies += Dependencies.akka
7677
)
78+
.settings(dottySettings)
7779
.dependsOn(core % "test->test;compile->compile")
7880

7981
lazy val shapelessScanner = (project in file("shapeless"))
@@ -84,6 +86,7 @@ lazy val shapelessScanner = (project in file("shapeless"))
8486
description := "Shapeless Scanner",
8587
libraryDependencies += Dependencies.shapeless
8688
)
89+
.settings(dottySettings)
8790
.dependsOn(core % "test->test;compile->compile")
8891

8992
lazy val benchmarks = (project in file("benchmarks"))
@@ -161,3 +164,12 @@ lazy val publishSettings = Seq(
161164
</developer>
162165
</developers>
163166
)
167+
168+
//lazy val dottyVersion = dottyLatestNightlyBuild.get
169+
lazy val dottyVersion = "0.5.0-bin-SNAPSHOT"
170+
171+
lazy val dottySettings = List(
172+
scalaVersion := dottyVersion,
173+
libraryDependencies := libraryDependencies.value.map(_.withDottyCompat()),
174+
scalacOptions := List("-language:Scala2")
175+
)

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# This can only be upto version supported by CircleCI. See: https://circleci.com/docs/1.0/language-scala/
2-
sbt.version=0.13.9
2+
sbt.version=0.13.15

project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.5.4")
77
addSbtPlugin("com.updateimpact" % "updateimpact-sbt-plugin" % "2.1.1")
88
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "0.5.1")
99
addSbtPlugin("com.codacy" % "sbt-codacy-coverage" % "1.3.8")
10+
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.1.6")

0 commit comments

Comments
 (0)