-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
61 lines (52 loc) · 1.27 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
58
59
60
61
import sbt.Keys.version
import java.nio.file._
lazy val Version = "0.1"
lazy val commonSettings = Seq(
scalaVersion := "2.13.5",
organization := "com.github.ivellien",
version := Version,
scalaVersion := Dependencies.scalaVersion,
libraryDependencies ++= Dependencies.basic,
fork := true
)
lazy val root: Project =
project
.settings(
commonSettings,
name := "pgquery4s"
)
.in(file("."))
.aggregate(parser, macros, core, liftable, native)
lazy val native = project
.settings(
sourceDirectory in nativeCompile := sourceDirectory.value / "main" / "native"
)
.enablePlugins(JniNative)
lazy val parser: Project = project
.dependsOn(native)
.settings(
commonSettings,
scalacOptions += "-Ymacro-annotations",
libraryDependencies ++= Dependencies.circe,
libraryDependencies += Dependencies.commonsIO,
name := "pgquery4s-parser"
)
lazy val macros: Project = project
.dependsOn(parser, liftable)
.settings(
commonSettings,
name := "pgquery4s-macros"
)
lazy val liftable = project
.in(file("macros/liftable"))
.settings(
commonSettings,
name := "pgquery4s-liftable"
)
lazy val core =
project
.dependsOn(macros, parser)
.settings(
commonSettings,
name := "pgquery4s-core"
)