aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-09-28 08:45:33 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2016-09-28 10:37:45 -0400
commitcfa41097812e1d80ef536790fd1a130f82935ae8 (patch)
tree616e89d31762dbc7d2e36cb5be8e8bdcffdf1cc8
parenta2b34b2444401f6ecebbbfa8099459f2c949df49 (diff)
downloadcbt-cfa41097812e1d80ef536790fd1a130f82935ae8.tar.gz
cbt-cfa41097812e1d80ef536790fd1a130f82935ae8.tar.bz2
cbt-cfa41097812e1d80ef536790fd1a130f82935ae8.zip
add dotty sanity check as suggested by @smarter
-rw-r--r--examples/dotty-example/src/Main.scala4
-rw-r--r--stage2/plugins/Dotty.scala4
2 files changed, 8 insertions, 0 deletions
diff --git a/examples/dotty-example/src/Main.scala b/examples/dotty-example/src/Main.scala
index 411527a..1963b51 100644
--- a/examples/dotty-example/src/Main.scala
+++ b/examples/dotty-example/src/Main.scala
@@ -1,6 +1,10 @@
object Main extends Foo("Hello Dotty - trait parameters, yay"){
def main(args: Array[String]) = {
println(hello)
+
+ // Sanity check the classpath: this won't run if the dotty jar is not present.
+ val x: Int => Int = z => z
+ x(1)
}
}
diff --git a/stage2/plugins/Dotty.scala b/stage2/plugins/Dotty.scala
index 6bf910a..ef6246f 100644
--- a/stage2/plugins/Dotty.scala
+++ b/stage2/plugins/Dotty.scala
@@ -19,6 +19,10 @@ trait Dotty extends BaseBuild{
dottyOptions = dottyOptions, dottyVersion = dottyVersion
)
}
+
+ override def dependencies = Resolver(mavenCentral).bind(
+ ScalaDependency( "org.scala-lang.modules", "scala-java8-compat", "0.8.0-RC7" )
+ )
}
class DottyLib(logger: Logger){