diff options
Diffstat (limited to 'project/Build.scala')
-rw-r--r-- | project/Build.scala | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/project/Build.scala b/project/Build.scala new file mode 100644 index 0000000..e1551a4 --- /dev/null +++ b/project/Build.scala @@ -0,0 +1,36 @@ +import sbt._ +import sbt.Keys._ + +object NativeUtilsBuild extends Build { + + val commonSettings = Seq( + version := "0.1-SNAPSHOT", + organization := "ch.jodersky", + scalacOptions ++= Seq("-deprecation", "-feature") + ) + + lazy val root = Project( + id = "root", + base = file("."), + aggregate = Seq( + library, plugin + ), + settings = Seq( + publish := {} + ) + ) + + lazy val library = Project( + id = "jni-library", + base = file("jni-library"), + settings = commonSettings + ) + + lazy val plugin = Project( + id = "sbt-jni", + base = file("jni-plugin"), + settings = commonSettings ++ Seq(sbtPlugin := true), + dependencies = Seq(library) + ) + +} |