aboutsummaryrefslogtreecommitdiff
path: root/project/project/BuildBuild.scala
blob: ce79999ae3eb330a7844b3a9043d8ddc8a343e05 (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
import sbt._
import sbt.Keys._
import play.twirl.sbt.SbtTwirl
import play.twirl.sbt.Import._

object BuildBuild extends Build {

  lazy val root = (
    Project("root", file("."))
    settings(
      resolvers += "Typesafe repository" at "https://repo.typesafe.com/typesafe/releases/",
      addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.7"),
      addSbtPlugin("org.scala-lang.modules.scalajs" % "scalajs-sbt-plugin" % "0.5.6")
    )
    dependsOn(mavlinkPlugin)
  )

  lazy val mavlinkLibrary = (
    Project("mavlink-library", file("mavlink-library"))
    enablePlugins(SbtTwirl)
    settings(
      libraryDependencies += "com.github.scala-incubator.io" %% "scala-io-file" % "0.4.2",
      TwirlKeys.templateImports += "com.github.jodersky.mavlink._"
    )
  )

  lazy val mavlinkPlugin = (
    Project("mavlink-plugin", file("mavlink-plugin"))
    settings(
      sbtPlugin := true
    )
    dependsOn(mavlinkLibrary)
  )

}