diff options
-rw-r--r-- | project/Build.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/project/Build.scala b/project/Build.scala index f702e3563..05ae52cc9 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -12,6 +12,8 @@ import sbt.Package.ManifestAttributes object DottyBuild extends Build { + projectChecks() + val scalacVersion = "2.11.5" // Do not rename, this is grepped in bin/common. val dottyOrganization = "ch.epfl.lamp" @@ -903,4 +905,15 @@ object DottyInjectedPlugin extends AutoPlugin { } )) } + + private def projectChecks(): Unit = { + val scalaScala = new File("scala-scala") + if (!scalaScala.exists()) { + println( + s"""[WARNING] Missing `dotty/scala-scala` library + |You can clone the library with: + | > git clone -b dotty-library https://github.com/DarkDimius/scala.git ${scalaScala.getAbsolutePath} + """.stripMargin) + } + } } |