blob: ddf108e3e6f6463110bc2e484b79cfecfca0a46c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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)
)
}
|