aboutsummaryrefslogtreecommitdiff
path: root/project/Build.scala
blob: e1551a4b9221bd84df863fc19331ecc14c8f2ae4 (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._

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)
  )

}