-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
76 lines (69 loc) · 2.46 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
lazy val commonSettings = Seq(
version := "3.0.0",
scalaVersion := "2.12.7",
scalacOptions := Seq(
"-feature",
"-encoding", "UTF-8",
"-deprecation",
"-language:higherKinds",
"-language:existentials",
"-language:implicitConversions",
"-language:postfixOps",
"-Ypartial-unification",
//"-Xmacro-settings:print-codecs" // to debug jsoniter codecs
),
resolvers ++= Seq(
Resolver.bintrayRepo("jmcardon", "tsec"),
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
)
)
lazy val root = (project in file(".")).aggregate(interface, internal, web, worker)
lazy val interface = (project in file("interface")).settings(
commonSettings
)
lazy val internal = (project in file("internal"))
.settings(
commonSettings,
libraryDependencies ++= Dependencies.internalM,
dependencyOverrides ++= Dependencies.commonOverrides
)
.dependsOn(interface)
lazy val web = (project in file("web"))
.configs(IntegrationTest)
.settings(
commonSettings,
Defaults.itSettings,
libraryDependencies ++= Dependencies.jsoniter,
libraryDependencies ++= Dependencies.doobie,
libraryDependencies ++= Dependencies.ciris,
libraryDependencies ++= Dependencies.http4s,
libraryDependencies ++= Dependencies.webSpecific,
libraryDependencies ++= Dependencies.logging,
libraryDependencies ++= unitTesting(Dependencies.commonTest),
libraryDependencies ++= integTesting(Dependencies.integTests),
dependencyOverrides ++= Dependencies.commonOverrides,
addCompilerPlugin(Dependencies.kindProjector),
addCompilerPlugin(Dependencies.betterMonadicFor)
)
.dependsOn(internal)
.enablePlugins(JavaAgent, JavaAppPackaging)
.settings(
javaAgents += "org.aspectj" % "aspectjweaver" % "1.9.2"
)
lazy val worker = (project in file("worker"))
.configs(IntegrationTest)
.settings(
commonSettings,
Defaults.itSettings,
libraryDependencies ++= Dependencies.jsoniter,
libraryDependencies ++= Dependencies.doobie,
libraryDependencies ++= Dependencies.ciris,
libraryDependencies ++= Dependencies.workerSpecific,
libraryDependencies ++= Dependencies.logging,
libraryDependencies ++= integTesting(Dependencies.integTests),
dependencyOverrides ++= Dependencies.commonOverrides
)
.dependsOn(internal)
.enablePlugins(JavaAppPackaging)
def unitTesting(tests: Seq[ModuleID]) = tests.map(_ % Test)
def integTesting(tests: Seq[ModuleID]) = tests.map(_ % IntegrationTest)