forked from getquill/quill-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
55 lines (50 loc) · 1.47 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
name := "quill-example"
val scalaVer = "2.12.4"
lazy val commonSettings = Seq(
version := "1.0",
scalaVersion := scalaVer,
scalacOptions ++= Seq(
"-target:jvm-1.8"
, "-feature"
, "-deprecation"
// , "-Xfatal-warnings"
, "-Xmax-classfile-name", "100"
, "-unchecked"
, "-language:implicitConversions"
, "-language:reflectiveCalls"
, "-language:postfixOps"
, "-language:higherKinds"
, "-encoding", "UTF-8"
, "-Yno-adapted-args"
// , "-Xlint"
, "-Ywarn-numeric-widen"
, "-Ywarn-value-discard"
, "-Xfuture"
// , "-Xlog-implicits"
),
javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint"),
resolvers ++= Seq(
"micronautics/scala on bintray" at "http://dl.bintray.com/micronautics/scala"/*,
Resolver.sonatypeRepo("snapshots")*/
)
)
val quillVer = "1.2.1"
lazy val macrosModule = project.in(file("macro"))
.settings(commonSettings: _*)
.settings(
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVer,
"org.scala-lang" % "scala-compiler" % scalaVer,
"io.getquill" %% "quill-async-postgres" % quillVer,
"io.getquill" %% "quill-jdbc" % quillVer,
"org.postgresql" % "postgresql" % "9.4.1208"
)
)
lazy val root = project.in(file("."))
.settings(commonSettings: _*)
.settings(
libraryDependencies ++= Seq(
"com.micronautics" %% "quill-cache" % "3.0.8"
)
)
.dependsOn(macrosModule)