-
Notifications
You must be signed in to change notification settings - Fork 30
/
build.sbt
37 lines (33 loc) · 1.24 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
import sbt._
import Keys._
val paradiseVersion = "2.1.0"
val buildSettings = Defaults.coreDefaultSettings ++ Seq(
organization := "org.scalamacros",
version := "1.0.0",
scalacOptions ++= Seq(),
scalaVersion := "2.12.4",
crossScalaVersions := Seq("2.10.2", "2.10.3", "2.10.4", "2.10.5", "2.10.6",
"2.11.0", "2.11.1", "2.11.2", "2.11.3", "2.11.4",
"2.11.5", "2.11.6", "2.11.7", "2.11.8",
"2.12.0", "2.12.1", "2.12.2", "2.12.3", "2.12.4"),
resolvers += Resolver.sonatypeRepo("snapshots"),
resolvers += Resolver.sonatypeRepo("releases"),
addCompilerPlugin("org.scalamacros" % "paradise" % paradiseVersion cross CrossVersion.full)
)
lazy val root: Project = Project("root", file("."),
settings = buildSettings ++ Seq(
run := (run in Compile in core).evaluated
)
) aggregate(macros, core)
lazy val macros: Project = Project("macros", file("macros"),
settings = buildSettings ++ Seq(
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _).value,
libraryDependencies ++= (
if (scalaVersion.value.startsWith("2.10")) List("org.scalamacros" %% "quasiquotes" % paradiseVersion)
else Nil
)
)
)
lazy val core: Project = Project("core", file("core"),
settings = buildSettings
) dependsOn macros