diff options
author | Vlad Ureche <vlad.ureche@gmail.com> | 2014-01-23 21:24:57 +0100 |
---|---|---|
committer | Vlad Ureche <vlad.ureche@gmail.com> | 2014-01-23 21:40:58 +0100 |
commit | e41f4fdd0efd9b19d5363def8ecb057fc6326d57 (patch) | |
tree | 619f6dc7f8e57b8c3978da505550c34e55ce40f1 /project/Build.scala | |
parent | 0e8d0bb1fbe557665f4db9edcd51dc4c49a7ae15 (diff) | |
download | dotty-e41f4fdd0efd9b19d5363def8ecb057fc6326d57.tar.gz dotty-e41f4fdd0efd9b19d5363def8ecb057fc6326d57.tar.bz2 dotty-e41f4fdd0efd9b19d5363def8ecb057fc6326d57.zip |
Build infrastructure
Diffstat (limited to 'project/Build.scala')
-rw-r--r-- | project/Build.scala | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/project/Build.scala b/project/Build.scala new file mode 100644 index 000000000..2453d0057 --- /dev/null +++ b/project/Build.scala @@ -0,0 +1,39 @@ +import sbt._ +import Keys._ +import Process._ + +object MiniboxingBuild extends Build { + + val defaults = Defaults.defaultSettings ++ Seq( + // set sources to src/, tests to test/ and resources to resources/ + scalaSource in Compile <<= baseDirectory(_ / "src"), + javaSource in Compile <<= baseDirectory(_ / "src"), + scalaSource in Test <<= baseDirectory(_ / "test"), + javaSource in Test <<= baseDirectory(_ / "test"), + resourceDirectory in Compile <<= baseDirectory(_ / "resources"), + unmanagedSourceDirectories in Compile <<= (scalaSource in Compile)(Seq(_)), + unmanagedSourceDirectories in Test <<= (scalaSource in Test)(Seq(_)), + + // include sources in eclipse (downloads source code for all dependencies) + //http://stackoverflow.com/questions/10472840/how-to-attach-sources-to-sbt-managed-dependencies-in-scala-ide#answer-11683728 + com.typesafe.sbteclipse.plugin.EclipsePlugin.EclipseKeys.withSource := true, + + // to get Scala 2.11 + resolvers += Resolver.sonatypeRepo("releases"), + + // get reflect and xml onboard + libraryDependencies ++= Seq("org.scala-lang" % "scala-reflect" % scalaVersion.value, + "org.scala-lang.modules" %% "scala-xml" % "1.0.0-RC7"), + + // get junit onboard + libraryDependencies += "com.novocode" % "junit-interface" % "0.9" % "test", + + // scalac options + scalacOptions in Global ++= Seq("-feature", "-deprecation", "-language:_"), + + // main class + mainClass in (Compile, run) := Some("dotty.tools.dotc.Main") + ) + + lazy val dotty = Project(id = "miniboxing", base = file("."), settings = defaults) +} |