-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
47 lines (39 loc) · 1.19 KB
/
build.sbt
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
43
44
45
46
47
import sbt.Keys.scalacOptions
val scodecV = "1.10.3"
val macroParadiseV = "2.1.0"
val specs2V = "3.8.9"
val scodecCore = "org.scodec" %% "scodec-core" % scodecV
def commonSettings = Seq(
scalaVersion := "2.12.1",
scalacOptions ++=
Seq(
"-Yrangepos", // needed for macros to extract code
"-deprecation", "-feature", "-encoding", "utf8", "-Ywarn-dead-code", "-unchecked", "-Xlint", "-Ywarn-unused-import")
)
lazy val root =
project.in(file("."))
.aggregate(macros, metadata, generator)
lazy val macros =
project.in(file("macros"))
.settings(commonSettings: _*)
.settings(
addCompilerPlugin("org.scalamacros" % "paradise" % macroParadiseV cross CrossVersion.full),
libraryDependencies ++= Seq(
scodecCore,
"org.scala-lang" % "scala-reflect" % scalaVersion.value % "provided"
)
)
lazy val metadata =
project.in(file("metadata"))
.dependsOn(macros)
.settings(commonSettings: _*)
.settings(
libraryDependencies ++= Seq(
scodecCore,
"org.specs2" %% "specs2-core" % specs2V % "test"
)
)
lazy val generator =
project.in(file("generator"))
.settings(commonSettings: _*)
.dependsOn(metadata)