-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
126 lines (113 loc) · 3.19 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / scalaVersion := "3.3.3"
ThisBuild / organization := "net.lambdaserve"
val commonDeps = Seq(
"org.slf4j" % "slf4j-api" % "2.0.16",
"org.scalameta" %% "munit" % "1.0.3" % Test
)
lazy val core = (project in file("modules/core"))
.settings(name := "lambdaserve-core", libraryDependencies ++= commonDeps)
lazy val mapextract = (project in file("modules/mapextract"))
.settings(
name := "lambdaserve-mapextract",
libraryDependencies ++= commonDeps ++ Seq(
"com.softwaremill.magnolia1_3" %% "magnolia" % "1.3.8"
)
)
lazy val jsonJsoniter = (project in file("modules/json-jsoniter"))
.settings(
name := "lambdaserve-json-jsoniter",
libraryDependencies ++= commonDeps ++ Seq(
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-core" % "2.32.0",
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-macros" % "2.32.0" % "provided"
)
)
.dependsOn(core)
lazy val jwt = (project in file("modules/jwt"))
.settings(
name := "lambdaserve-jwt",
libraryDependencies ++= commonDeps ++ Seq(
"org.bitbucket.b_c" % "jose4j" % "0.9.6"
)
)
.dependsOn(core)
lazy val viewsScalatags = (project in file("modules/views-scalatags"))
.settings(
name := "lambdaserve-views-scalatags",
libraryDependencies ++= commonDeps ++ Seq(
"com.lihaoyi" %% "scalatags" % "0.13.1"
)
).dependsOn(core)
lazy val viewsTyrian = (project in file("modules/views-tyrian-tags"))
.settings(
name := "lambdaserve-views-tyrian-tags",
libraryDependencies ++= commonDeps ++ Seq(
"io.indigoengine" %% "tyrian" % "0.10.0"
)
).dependsOn(core)
lazy val requestmapped = (project in file("modules/requestmapped"))
.settings(
name := "lambdaserve-requestmapped",
libraryDependencies ++= commonDeps
)
.dependsOn(core, mapextract)
lazy val filters = (project in file("modules/filters"))
.settings(
name := "lambdaserve-filters",
libraryDependencies ++= commonDeps
)
.dependsOn(core, jwt)
lazy val serverJetty = (project in file("modules/server-jetty"))
.settings(
name := "lambdaserve-server-jetty",
libraryDependencies ++= commonDeps ++ Seq(
"org.eclipse.jetty" % "jetty-server" % "12.0.15"
)
)
.dependsOn(core)
lazy val all = (project in file("modules/all"))
.settings(
name := "lambdaserve-all"
)
.dependsOn(
core,
serverJetty,
jsonJsoniter,
mapextract,
requestmapped,
viewsTyrian,
viewsScalatags,
filters
)
lazy val example = (project in file("modules/example"))
.enablePlugins(JavaAppPackaging)
.settings(
name := "lambdaserve-example",
libraryDependencies ++= Seq(
"com.outr" %% "scribe-slf4j2" % "3.15.2",
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-macros" % "2.32.0" % "provided"
)
)
.dependsOn(
serverJetty,
viewsScalatags,
requestmapped,
jsonJsoniter
)
lazy val `lambda-serve` = (project in file("."))
.settings(
publish / skip := true,
publishLocal / skip := true
)
.aggregate(
core,
jwt,
serverJetty,
jsonJsoniter,
mapextract,
requestmapped,
viewsScalatags,
viewsTyrian,
filters,
all
)