aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2015-03-19 16:08:46 +0100
committerJakob Odersky <jodersky@gmail.com>2015-03-19 16:08:46 +0100
commit1cf6e37dc356144f3da2a2dcde75d1ced8bc5ad6 (patch)
tree287a8e4ce18d3a8c299d7b2a91599a7a48c7b59d /project
downloadsbt-mavlink-1cf6e37dc356144f3da2a2dcde75d1ced8bc5ad6.tar.gz
sbt-mavlink-1cf6e37dc356144f3da2a2dcde75d1ced8bc5ad6.tar.bz2
sbt-mavlink-1cf6e37dc356144f3da2a2dcde75d1ced8bc5ad6.zip
initial commit
Diffstat (limited to 'project')
-rw-r--r--project/Build.scala42
-rw-r--r--project/plugins.sbt1
2 files changed, 43 insertions, 0 deletions
diff --git a/project/Build.scala b/project/Build.scala
new file mode 100644
index 0000000..ddf108e
--- /dev/null
+++ b/project/Build.scala
@@ -0,0 +1,42 @@
+import sbt._
+import sbt.Keys._
+import play.twirl.sbt.SbtTwirl
+import play.twirl.sbt.Import._
+
+object ApplicationBuild extends Build {
+
+ val common = Seq(
+ scalaVersion := "2.10.4",
+ scalacOptions ++= Seq("-feature", "-deprecation"),
+ organization := "com.github.jodersky",
+ version := "0.1-SNAPSHOT"
+ )
+
+ lazy val root = Project("root", file(".")).aggregate(
+ library,
+ plugin
+ )
+
+ lazy val library = (
+ Project("mavlink-library", file("mavlink-library"))
+ enablePlugins(SbtTwirl)
+ settings(common: _*)
+ settings(
+ libraryDependencies += "com.github.scala-incubator.io" %% "scala-io-file" % "0.4.2",
+ TwirlKeys.templateImports += "com.github.jodersky.mavlink._",
+ TwirlKeys.templateImports += "com.github.jodersky.mavlink.trees._"
+ )
+ )
+
+ lazy val plugin = (
+ Project("mavlink-plugin", file("mavlink-plugin"))
+ settings(common: _*)
+ settings(
+ sbtPlugin := true,
+ name := "sbt-mavlink"
+ )
+ dependsOn(library)
+ )
+
+}
+
diff --git a/project/plugins.sbt b/project/plugins.sbt
new file mode 100644
index 0000000..7b458b6
--- /dev/null
+++ b/project/plugins.sbt
@@ -0,0 +1 @@
+addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.0.4") \ No newline at end of file