-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
57 lines (52 loc) · 1.64 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
48
49
50
51
52
53
54
55
56
57
lazy val buildSettings = List(
organization := "com.adelbertc",
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
scalaVersion := "2.11.7",
crossScalaVersions := List("2.10.5", scalaVersion.value),
version := "0.1.0-SNAPSHOT"
)
lazy val commonSettings = List(
scalacOptions ++= List(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:experimental.macros",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Yrangepos",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard"
),
resolvers += Resolver.sonatypeRepo("snapshots"),
libraryDependencies +=
compilerPlugin("org.scalamacros" % "paradise" % "2.0.1" cross CrossVersion.full),
initialize := { System.setProperty("tfm.verbose", "") }
)
lazy val tfmSettings = buildSettings ++ commonSettings
lazy val tfm =
project.in(file(".")).
settings(tfmSettings).
aggregate(core, examples)
lazy val core =
project.in(file("core")).
settings(name := "tfm").
settings(description := "Annotation macro to generate EDSL code in the tagless final style").
settings(tfmSettings).
settings(
libraryDependencies ++= List(
"org.typelevel" %% "macro-compat" % "1.0.1",
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.specs2" %% "specs2-core" % "3.6.4" % "test"
)
)
lazy val examples =
project.in(file("examples")).
settings(tfmSettings).
settings(libraryDependencies += "org.spire-math" %% "cats" % "0.2.0").
dependsOn(core)