-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
80 lines (66 loc) · 2.51 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
ThisBuild / scalaVersion := "2.13.12"
ThisBuild / organization := "com.cesar"
ThisBuild / scalafixScalaBinaryVersion := "2.13"
val AkkaVersion = "2.9.0"
val AkkaHttpVersion = "10.6.0"
val swaggerVersion = "2.2.10"
val jacksonVersion = "2.15.2"
lazy val commonSettings = Seq(
resolvers += "Akka library repository".at("https://repo.akka.io/maven")
)
lazy val commonDependencies = Seq(
"com.fasterxml.uuid" % "java-uuid-generator" % "4.2.0",
)
lazy val business = (project in file("business")).settings(
name := "example-business",
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor-typed" % AkkaVersion,
"com.typesafe.akka" %% "akka-stream" % AkkaVersion,
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % AkkaHttpVersion,
) ++ swaggerDependencies,
commonSettings
)
lazy val data = (project in file("data"))
.dependsOn(business)
.settings(
name := "example-data",
resolvers += "typesafe".at("https://repo1.maven.org/maven2/"),
libraryDependencies ++= Seq(
"com.typesafe.slick" %% "slick" % "3.3.3",
"org.slf4j" % "slf4j-nop" % "1.6.4",
"org.mongodb.scala" %% "mongo-scala-driver" % "4.9.0"
),
commonSettings
)
val swaggerDependencies = Seq(
"jakarta.ws.rs" % "jakarta.ws.rs-api" % "3.1.0",
"com.github.swagger-akka-http" %% "swagger-akka-http" % "2.10.0",
"com.github.swagger-akka-http" %% "swagger-scala-module" % "2.9.0",
"com.github.swagger-akka-http" %% "swagger-enumeratum-module" % "2.6.2",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % jacksonVersion,
"io.swagger.core.v3" % "swagger-jaxrs2-jakarta" % swaggerVersion
)
lazy val api = (project in file("api"))
.settings(
name := "example-api",
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor-typed" % AkkaVersion,
"com.typesafe.akka" %% "akka-stream" % AkkaVersion,
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
"net.codingwell" %% "scala-guice" % "7.0.0",
) ++ swaggerDependencies,
commonSettings
).dependsOn(business, data)
lazy val root = (project in file(".")).
settings(
name := "ejemplo_api",
commonSettings,
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor-typed" % AkkaVersion,
"com.typesafe.akka" %% "akka-stream" % AkkaVersion,
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
"ch.qos.logback" % "logback-classic" % "1.4.7"
)
).dependsOn(business, api, data)
.aggregate(business, api, data)