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 | |
parent | 0e8d0bb1fbe557665f4db9edcd51dc4c49a7ae15 (diff) | |
download | dotty-e41f4fdd0efd9b19d5363def8ecb057fc6326d57.tar.gz dotty-e41f4fdd0efd9b19d5363def8ecb057fc6326d57.tar.bz2 dotty-e41f4fdd0efd9b19d5363def8ecb057fc6326d57.zip |
Build infrastructure
Diffstat (limited to 'project')
-rw-r--r-- | project/Build.scala | 39 | ||||
-rw-r--r-- | project/build.properties | 2 | ||||
-rw-r--r-- | project/plugins.sbt | 3 |
3 files changed, 43 insertions, 1 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) +} diff --git a/project/build.properties b/project/build.properties index 66ad72ce2..0974fce44 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=0.12.2 +sbt.version=0.13.0 diff --git a/project/plugins.sbt b/project/plugins.sbt index b6864b47b..654570000 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,3 +1,6 @@ // Add personal SBT plugins for IDEs, etc to `local-plugins.sbt` // // e.g. addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.1.0") + +// Scala IDE project file generator +addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.2.0") |