Added SBT build. I can't work with stone tools in my old age.

This commit is contained in:
Michael Bayne
2013-01-23 15:35:40 -08:00
parent 880ff7ceec
commit 6ece954f24
3 changed files with 35 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
import sbt._
import Keys._
import samskivert.ProjectBuilder
object NenyaBuild extends Build {
val builder = new ProjectBuilder("pom.xml") {
override val globalSettings = Seq(
crossPaths := false,
scalaVersion := "2.9.2",
javacOptions ++= Seq("-Xlint", "-Xlint:-serial", "-source", "1.6", "-target", "1.6"),
javaOptions ++= Seq("-ea"),
fork in Compile := true,
autoScalaLibrary := false, // no scala-library dependency
publishArtifact in (Compile, packageDoc) := false, // no scaladocs; it fails
// no parallel test execution to avoid confusions
parallelExecution in Test := false,
// TODO: nix this when Narya 1.13 is up on central
resolvers += ".m2" at "file://"+Path.userHome.absolutePath+"/.m2/repository",
// everybody needs JUnit wiring
libraryDependencies ++= Seq(
"com.novocode" % "junit-interface" % "0.7" % "test->default"
)
)
override def projectSettings (name :String) = name match {
case _ => Nil
}
}
lazy val core = builder("core")
lazy val tools = builder("tools")
// one giant fruit roll-up to bring them all together
lazy val nenya = Project("nenya", file(".")) aggregate(core, tools)
}
+1
View File
@@ -0,0 +1 @@
sbt.version=0.11.3
+1
View File
@@ -0,0 +1 @@
libraryDependencies += "com.samskivert" % "sbt-pom-util" % "0.3"