-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
35 lines (31 loc) · 948 Bytes
/
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
import sbt._
import Keys._
val baseSettings = Seq(
scalaVersion := "2.11.5",
organization := "com.jtm",
name := "scala-macro-starter",
version := "1.0.0",
resolvers += Resolver.sonatypeRepo("releases"),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0-M5" cross CrossVersion.full),
initialCommands in console := "import com.jtm._",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "2.2.1" % "test"
),
scalacOptions ++= Seq(
"-nowarn"
)
)
lazy val root = (project in file("."))
.settings(baseSettings: _*)
.aggregate(macroDef, macroTest)
lazy val macroDef = (project in file("macro-def"))
.settings(baseSettings: _*)
.settings(
name := "macro-def",
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value
)
lazy val macroTest = (project in file("macro-test"))
.settings(baseSettings: _*)
.settings(
name := "macro-test"
).dependsOn(macroDef)