-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
55 lines (46 loc) · 1.81 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
ThisBuild / version := "0.2.1"
ThisBuild / scalaVersion := "2.13.10"
ThisBuild / crossPaths := false
ThisBuild / versionScheme := Some("early-semver")
lazy val commonDependencies = Seq("org.slf4j" % "slf4j-api" % "2.0.12",
"ch.qos.logback" % "logback-classic" % "1.5.6",
"org.scalatest" %% "scalatest" % "3.2.19" % "test")
lazy val global = (project in file("."))
.settings(
name := "ve-scala",
publish / skip := true
)
.aggregate(core, service)
.dependsOn(core)
lazy val core = (project in file("core"))
.settings(
name := "ve-scala-core",
libraryDependencies ++= Seq("com.atilika.kuromoji" % "kuromoji-ipadic" % "0.9.0",
"edu.stanford.nlp" % "stanford-corenlp" % "4.5.7",
"edu.stanford.nlp" % "stanford-corenlp" % "4.5.7" classifier "models") ++ commonDependencies
)
lazy val service = (project in file("service"))
.settings(
name := "ve-scala-service",
publish / skip := true,
libraryDependencies ++= commonDependencies ++ Seq(
"org.apache.pekko" %% "pekko-actor-typed" % PekkoVersion,
"org.apache.pekko" %% "pekko-stream" % PekkoVersion,
"org.apache.pekko" %% "pekko-http" % PekkoHttpVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"com.auth0" % "jwks-rsa" % "0.22.1",
"com.github.jwt-scala" %% "jwt-core" % "10.0.1",
"com.github.jwt-scala" %% "jwt-circe" % "10.0.1",
"com.github.pjfanning" %% "pekko-http-circe" % "2.6.0",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.5"
),
Docker / packageName := "ve-scala-service",
dockerBaseImage := "amazoncorretto:21",
dockerExposedPorts := Seq(9000)
)
.dependsOn(core)
.enablePlugins(JavaAppPackaging, DockerPlugin)
val PekkoVersion = "1.0.2"
val PekkoHttpVersion = "1.0.1"
val circeVersion = "0.14.9"