-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
33 lines (31 loc) · 1.06 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
//lazy val root = (project in file(".")).enablePlugins(PlayScala).settings(
lazy val root = (project in file(".")).settings(
inThisBuild(List(
scalaVersion := "2.12.4",
version := "0.1.0"
)),
name := "domala-handson",
libraryDependencies ++= Seq(
"com.h2database" % "h2" % "1.4.196",
"com.typesafe.play" %% "play" % "2.6.9"
// , guice
// , jdbc
// , evolutions
)
) dependsOn repository aggregate repository
lazy val repository = (project in file("repository")).settings(
inThisBuild(List(
scalaVersion := "2.12.4",
version := "0.1.0"
)),
metaMacroSettings,
libraryDependencies ++= Seq(
"org.scalameta" %% "scalameta" % "1.8.0" % Provided,
"com.github.domala" %% "domala" % "0.1.0-beta.8"
)
)
lazy val metaMacroSettings: Seq[Def.Setting[_]] = Seq(
addCompilerPlugin("org.scalameta" % "paradise" % "3.0.0-M10" cross CrossVersion.full),
scalacOptions += "-Xplugin-require:macroparadise",
scalacOptions in (Compile, console) ~= (_ filterNot (_ contains "paradise")) // macroparadise plugin doesn't work in repl yet.
)